sokol
bgfx
Our great sponsors
sokol | bgfx | |
---|---|---|
38 | 71 | |
5,885 | 14,292 | |
- | - | |
9.7 | 9.3 | |
10 days ago | 7 days ago | |
C | C++ | |
zlib License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sokol
- STB: Single-file public domain libraries for C/C++
-
Container2wasm: Convert Containers to WASM Blobs
I'm using Dear ImGui for my cross-platform code (which includes running in browsers):
- https://floooh.github.io/visual6502remix/
- https://floooh.github.io/tiny8bit/c64-ui.html
- (start these samples by clicking on the little "UI" icon) https://floooh.github.io/sokol-html5/
Platform abstraction is handled through the sokol headers: https://github.com/floooh/sokol
-
New Vulkan Documentation Website
I wonder if using your library (https://github.com/floooh/sokol) instead of OpenGL will alleviate some of these issues for newcomers! There's already a sokol port of the learnopengl.com code (https://github.com/GeertArien/learnopengl-examples), so it shouldn't be too hard to match between the tutorial articles and these.
-
Meta Releases Intermediate Graphics Library
If you're looking for something like this, Sokol is a much simpler alternative:
https://github.com/floooh/sokol
It doesn't support vulkan though, but if that's important to you you're probably much better off just using vulkan directly since it's supported on all the major platforms.
-
Why glibc 2.34 removed libpthread
All I can do is give you a couple of Github ticket links where users of my libraries stumbled over the issue (and with different symptoms):
- https://github.com/floooh/sokol/issues/376
- https://github.com/floooh/sokol/issues/404
- https://github.com/floooh/cimgui-sokol-starterkit/issues/6
We then added a dummy call to a no-op pthread function, so that users can better figure out that they need to use -pthread because now they get a linker error instead of a runtime crash or hang. This has since reduced the 'support overhead' quite a bit:
- https://github.com/floooh/sokol/pull/456
-
File for Divorce from LLVM
My stuff for instance:
https://github.com/floooh/sokol
...inspired by:
https://github.com/nothings/stb
But it's not so much about the build system, but requiring a separate C/C++ compiler toolchain (Rust needs this, Zig currently does not - unless the proposal is implemented).
- Minimal cross-platform standalone C headers
-
How can i play .wav file with C ?
I have never personally used it but I'm pretty sure sokol has an audio library that might be what you are after.
-
Website with Godot?
And I asked floooh for similar thoughts on making a website with sokol here: https://github.com/floooh/sokol/issues/825
-
I want to talk about WebGPU
It's not Rust and TS, instead C and JS, but Emscripten has a very nice way of integrating C/C++ and JS (you can just embed snippets of Javascript inside C/C++ source files), e.g. starting at this line, there's a couple of embedded Javascript functions which can be called like C functions directly from the "C side":
https://github.com/floooh/sokol/blob/4535a3b4be59eb912e77e04...
bgfx
- WebKit Switching to Skia for 2D Graphics Rendering
-
Is it possible and realistic to learn independent of an API?
Sort of, I'd recommend a modern higher level API. I'm not sure what the current recommended ones are (probably bgfx), but assuming the wrapper is "low level enough", then the concepts you learn are still going to apply.
-
Ask HN: Released games built on FOSS engines?
https://github.com/bkaradzic/bgfx for just that FOSS intermediate rendering library (includes Minecraft)
- Valve Says Counter-Strike 2 for macOS Not Happening, There Aren't Enough Players
-
The Ultimate Cross-Platform Rendering Engine?
BGFX: Pretty mature and easy to use with many backends.
- Cairo – Open-Source 2D Graphics Layer/API with Fonts and Many Back-Ends
-
Best graphics libraries for game development that are compatible with Apple Metal API?
bgfx. I have not used it, but I have heard good things about it.
-
LWJGL = SFML vs Allegro vs SDL vs Ogre vs ???
There's kind of a lack of this for C++ in 3D, I think it's often due to the necessity of a secondary scripting language in game engines with C++, which isn't necessarily needed in Java or C#. SFML is like that (but also 2D), Godot is similar (but more geared towards 2D). Ogre3D is an actual engine like I mentioned earlier, not sure how easy it is to use. Cocos2d is higher level, but is also 2D only. I'm not fond of SDL, it feels like a windowing library with slow old school immediate mode stuff attached, so it ends up not being good at the rest of the tacked on things. SDL is popular as a windowing library, and it's why you see it used everywhere (but the most notable uses of it aren't using their drawing capabilities), I often see bgfx thrown around, and for you it might be a good choice, though I have no experience with it.
-
Is it a crazy idea to create a 3D operating system?
Another route could be using an abstraction over Vulkan (faster, more efficient, more difficult): bgfx, dawn, magma, or wgpu (Rust).
-
The update we all want but will never get
now, java is actually quite a performant language and even if its not most of the performance bugs in mc are due to it being single threaded, inefficient chunk generation and optimizing, and it built ontop of opengl WHICH isn't much of a performance hit but its still ehh idk it doesn't matter that much (NOW SWITCHING THE GAME TO AN ENTIRELY DIFFERENT GRAPHICS API WOULD SUCK ASS TO DO (and vulkan is quite verbose :))) (AND also bgfx would probably be better due to it being an abstraction layer ontop of all the graphics apis so minecraft could target many depending on your platform (and also bedrock used to (or still does i dont know) use bgfx before they switched to just two (IF IM READING MC WIKI RIGHT BECAUSE IM NOT ENTIRELY SURE IF THEY USE BGFX STILL ?? SO THEY COULD STILL BE TARGETING MULTIPLE YET THEY JUST WROTE THEIR NEW SHIT BAD IDK))
What are some alternatives?
raylib - A simple and easy-to-use library to enjoy videogames programming
GLFW - A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
tinyrenderer - A brief computer graphics / rendering course
DiligentEngine - A modern cross-platform low-level graphics library and rendering framework
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
magnum - Lightweight and modular C++11 graphics middleware for games and data visualization
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
Ogre 3D - scene-oriented, flexible 3D engine (C++, Python, C#, Java)
nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
The-Forge - The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
microui - A tiny immediate-mode UI library
Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.