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
20082026
-
…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) -
They use bgfx for bedrock edition. https://github.com/bkaradzic/bgfx https://www.minecraft.net/en-us/attribution
comment by ozarkerD · 2026-02-19 · in Minecraft Java is switching from OpenGL to Vulkan -
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…
comment by riggsdk · 2025-05-19 · in Layers All the Way Down: The Untold Story of Shader Compilation -
▲ 1
Bgfx: Cross-platform, graphics API agnostic rendering librarystory by klaussilveira · 2025-01-08 · 0 comments
-
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 -
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 -
…It's much more mature than webgpu. I'm guessing being W3C backed is what's propelling it? [1] https://github.com/bkaradzic/bgfx
comment by hgs3 · 2024-06-06 · in I learned Vulkan and wrote a small game engine with it -
…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++ -
bgfx and The-Forge come to mind: https://github.com/bkaradzic/bgfx https://github.com/ConfettiFX/The-Forge
comment by longor1996 · 2024-02-20 · in WebKit switching to Skia for 2d graphics rendering -
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)
comment by djmips · 2023-10-17 · in Ask HN: Released games built on FOSS engines? -
…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/
comment by dleslie · 2023-10-10 · in Valve says Counter-Strike 2 for macOS not happening, there aren't enough players -
…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? -
…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
comment by peter_d_sherman · 2023-07-17 · in Cairo – Open-Source 2D Graphics Layer/API with font support and many back-ends -
…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 -
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,…
comment by interroboink · 2022-08-03 · in Vulkan update: version 1.2 conformance for Raspberry Pi 4 -
…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…
comment by flohofwoe · 2022-04-26 · in Magnum: Lightweight, modular C++11 graphics middleware for games/visualization -
It seems they are going to duplicate the efforts from bgfx ( https://github.com/bkaradzic/bgfx )
comment by pzo · 2021-11-12 · in SDL gets an Epic MegaGrant to work on next-gen Vulkan API -
https://github.com/bkaradzic/bgfx
comment by junon · 2021-10-03 · in Unified Shader Programming in C++ -
▲ 1
Bgfx: Cross-platform, graphics API agnostic style rendering librarystory by davikrr · 2021-09-24 · 0 comments
-
…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 -
…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
comment by fayten · 2021-01-04 · in List of open source libraries Minecraft uses -
…library like this could leave your hands tied when you need to do some API-specific workaround. 0. https://github.com/bkaradzic/bgfx
comment by jbister · 2020-11-10 · in Valve Is Working on Another Extension to Help in Direct3D-over-Vulkan -
https://github.com/bkaradzic/bgfx
comment by scott31 · 2020-08-28 · in Ask HN: Best Graphics libraries to build CAD solutions? -
…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 -
▲ 2
Cross-platform GL/DX/VK abstraction layer open sourced by Unity employeestory by bbmario · 2019-12-19 · 0 comments
-
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 -
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 -
▲ 1
Bgfx – Cross-platform, graphics API agnostic rendering librarystory by swills · 2019-02-18 · 0 comments
-
▲ 1
Bgfx – Cross-Platform, Graphics API Agnostic, “Bring Your Own Engine” Renderingstory by detaro · 2018-06-05 · 0 comments
-
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 -
▲ 2
Cross-platform, graphics API agnostic, BYO-engine style rendering librarystory by je42 · 2018-01-05 · 1 comment
-
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 -
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…
comment by mikulas_florek · 2017-03-01 · in Show HN: Lumix Engine – Open source C++ 3D game engine -
▲ 3
Bgfx: Cross-platform, graphics API agnostic rendering librarystory by zdw · 2017-01-10 · 0 comments
-
…essential. Why not contribute to bgfx[1] really? It's a "Graphics API", not a "game engine"... [1] https://github.com/bkaradzic/bgfx
comment by speps · 2016-10-25 · in Intrinsic: An Open-Source, Cross-Platform Vulkan Game Engine -
…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 -
bgfx sounds like what you're looking for: https://github.com/bkaradzic/bgfx
comment by yoklov · 2016-06-07 · in Magnum: C++11/C++14 and OpenGL Graphics Engine -
…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 -
▲ 3
Bgfx: a cross platform and BSD licensed graphics rendering librarystory by nickysielicki · 2015-11-16 · 0 comments
-
…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
comment by aras_p · 2015-03-13 · in Former Nvidia Dev's Thoughts on Vulkan/Mantle -
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 -
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 -
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