Hacker GitHub

← All repos

bkaradzic/bgfx

View on GitHub ↗ ★ 17,602 C++

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

43 mentions on Hacker News by 42 people: 8 stories, 35 comments · first 2014-04-18 · latest 2026-06-13

Mentions per year 43 mentions · busiest year 2021 (5)
20082026
  1. …restrictions outlined in the post make a lot of sense when considering that Branimir (of BGFX fame: https://github.com/bkaradzic/bgfx ) is coming out of the game dev hemisphere, and from that PoV none of the restrictions are controversial…
    comment by flohofwoe · 2026-06-13 · in Orthodox C++ (2016)
  2. They use bgfx for bedrock edition. https://github.com/bkaradzic/bgfx https://www.minecraft.net/en-us/attribution
  3. BGFX ( https://github.com/bkaradzic/bgfx ) uses a different approach. You basically write your shader in a GLSL-like language but it's all just (either very clever or very horrible) macro expansions that handles all the platform…
  4. Anyone know how well / if this compares with BGFX? https://github.com/bkaradzic/bgfx
    comment by interpol_p · 2024-09-26 · in Writing Portable Rendering Code with Nvrhi
  5. Unreal/Unity are not the only solutions. There is also bgfx ( https://github.com/bkaradzic/bgfx ), which is quite popular and sokol gfx ( https://github.com/floooh/sokol ) which I know of. Of course there are many more lesser known ones.
    comment by dxuh · 2024-08-30 · in SDL3 new GPU API merged
  6. …It's much more mature than webgpu. I'm guessing being W3C backed is what's propelling it? [1] https://github.com/bkaradzic/bgfx
  7. …PC, Mac, Linux, and wasm. While the coding style might be unpopular, it has successful projects. https://github.com/bkaradzic/bgfx
    comment by unclad5968 · 2024-05-22 · in Orthodox C++
  8. bgfx and The-Forge come to mind: https://github.com/bkaradzic/bgfx https://github.com/ConfettiFX/The-Forge
  9. Depending on your definition of FOSS game engine there's an incomplete list at https://github.com/bkaradzic/bgfx for just that FOSS intermediate rendering library (includes Minecraft)
  10. …it through an intermediary layer. Ie, you might prefer bgfx[0], cinder[1] or openframeworks[2]. 0: https://github.com/bkaradzic/bgfx 1: https://www.libcinder.org/ 2: https://openframeworks.cc/
  11. …Or it uses patterns (or lack of, given graphics programming) that don't apply to your domain. [1]: https://github.com/bkaradzic/bgfx
    comment by johnnyanmac · 2023-08-25 · in Ask HN: Where do I find good code to read?
  12. …where the following github projects which involve drawing are mentioned: https://github.com/bkaradzic/bgfx https://github.com/memononen/nanovg https://github.com/wjakob/nanogui In the following article: https://www.cmyr.net/blog/gu
  13. …there are countless opensource cross platform GPU libs, bgfx [1] or sokol [2] for example [1] - https://github.com/bkaradzic/bgfx [2] - https://github.com/floooh/sokol
    comment by Kukumber · 2022-09-23 · in The journey to Nintendo Switch
  14. I've had a decent experience with bgfx ( https://github.com/bkaradzic/bgfx ). It is solely a rendering library (no input, physics, sound, etc). It operates a layer just above a native rendering library, such as DirectX, OpenGL, Vulkan,…
  15. …jealous of the documentation: https://doc.magnum.graphics/magnum/ :) PS: also don't forget BGFX ( https://github.com/bkaradzic/bgfx ) which sits somewhere in the middle between sokol-gfx/WebGPU and Magnum when it comes to API abstraction…
  16. It seems they are going to duplicate the efforts from bgfx ( https://github.com/bkaradzic/bgfx )
  17. https://github.com/bkaradzic/bgfx
    comment by junon · 2021-10-03 · in Unified Shader Programming in C++
  18. …the only alternatives for Linux. For example, one pretty nice cross-platform GPU-enabled stack : https://github.com/bkaradzic/bgfx https://github.com/memononen/nanovg https://github.com/wjakob/nanogui
    comment by karteum · 2021-08-11 · in So you want to write a GUI framework
  19. …to see who was using BGFX. I was surprised to find Microsoft is using it in their C++ version. [1] https://github.com/bkaradzic/bgfx [2] https://github.com/DiligentGraphics/DiligentEngine
  20. …library like this could leave your hands tied when you need to do some API-specific workaround. 0. https://github.com/bkaradzic/bgfx
  21. https://github.com/bkaradzic/bgfx
  22. …shaders, such as BSL? Links: - https://github.com/LWJGL/lwjgl3/blob/master/doc/notes/3.1.0.md - https://github.com/bkaradzic/bgfx
    comment by tamarok · 2020-06-22 · in macOS Big Sur Preview
  23. bgfx is such a layer: https://github.com/bkaradzic/bgfx It exposes a common API to 3d GPU resources and implements it in terms of native backends.
    comment by enqk · 2019-05-09 · in Show HN: 2D Graphics on Modern GPU
  24. As a nice complement to GLFW, there's also bgfx which can be configured to use GLFW: https://github.com/bkaradzic/bgfx
    comment by binarycrusader · 2019-04-16 · in GLFW 3.3 Is Released
  25. Turns out it was a good idea to base new stuff on this: https://github.com/bkaradzic/bgfx
    comment by Keyframe · 2018-06-04 · in Deprecation of OpenGL and OpenCL
  26. Maybe https://github.com/bkaradzic/bgfx or maybe http://www.ogre3d.org depending on the abstraction level you are looking for.
    comment by corysama · 2017-08-26 · in Beginners Guide to Vulkan
  27. I'm using https://github.com/bkaradzic/bgfx for low-level rendering abstraction. IIRC in the engine there is no difference between opengl and d3d other than a projection matrix. On the outside there can be a difference, e.g. if opengl does…
  28. …essential. Why not contribute to bgfx[1] really? It's a "Graphics API", not a "game engine"... [1] https://github.com/bkaradzic/bgfx
  29. …problem). And if you don't have resources to ask/communicate than just use something like https://github.com/bkaradzic/bgfx/ which is an awesome API agnostic rendering library.
    comment by dmytroi · 2016-07-18 · in Vulkan Tutorial
  30. bgfx sounds like what you're looking for: https://github.com/bkaradzic/bgfx
  31. …If you want to graphics then I might recommend you poke at http://humus.name/index.php?page=3D or https://github.com/bkaradzic/bgfx . But graphics isn't my specialty so my thoughts aren't the strongest. If you want to learn C++ then...…
    comment by forrestthewoods · 2016-05-23 · in My time with Rails is up
  32. …isn't a library that tries to do > just 2D with some filtering+scaling While not a 2D library, https://github.com/bkaradzic/bgfx is a very sweet abstraction layer over platform graphics APIs
  33. I'd recommend bgfx ( https://github.com/bkaradzic/bgfx ), if you want something simple and cross platform. In many ways it reminds me of a 3D SFML.
    comment by Impossible · 2015-02-02 · in DirectX 11 vs. DirectX 12 oversimplified
  34. You should definitely check out bgfx ( https://github.com/bkaradzic/bgfx ). It abstracts various graphics APIs for you, making development and debugging markedly easier. It also stops you from having to deal with the complex state-machine…
    comment by devbug · 2014-05-12 · in Things that drive me nuts about OpenGL
  35. It's ~3x slower than native on my test (native vs asm.js vs PNaCl): https://github.com/bkaradzic/bgfx#30hz-test-for-browsers
    comment by bkaradzic · 2014-04-18 · in C/C++ to LLVM IR to asm.js to C benchmarks