Github url


by bkaradzic

bkaradzic /bgfx

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

8.0K Stars 1.3K Forks Last release: Not found BSD 2-Clause "Simplified" License 7.3K Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

bgfx - Cross-platform rendering library

Build StatusBuild statusLicenseJoin the chat at

What is it?

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

Supported rendering backends:

  • Direct3D 9
  • Direct3D 11
  • Direct3D 12
  • GNM (only for licensed PS4 developers, search DevNet forums for source)
  • Metal
  • OpenGL 2.1
  • OpenGL 3.1+
  • OpenGL ES 2
  • OpenGL ES 3.1
  • Vulkan
  • WebGL 1.0
  • WebGL 2.0
  • WebGPU/Dawn (experimental)

Supported platforms:

  • Android (14+, ARM, x86, MIPS)
  • asm.js/Emscripten (1.25.0)
  • FreeBSD
  • iOS (iPhone, iPad, AppleTV)
  • Linux
  • MIPS Creator CI20
  • OSX (10.12+)
  • PlayStation 4
  • RaspberryPi
  • Windows (XP, Vista, 7, 8, 10)
  • UWP (Universal Windows, Xbox One)

Supported compilers:

  • Clang 3.3 and above
  • GCC 5 and above
  • VS2017 and above



Getting involved


API Reference


Who is using it? #madewithbgfx

Airmech AirMech is a free-to-play futuristic action real-time strategy video game developed and published by Carbon Games.

cmftStudio cmftStudio - cubemap filtering tool.

Crown Crown is a general purpose data-driven game engine, written from scratch with a minimalistic and data-oriented design philosophy in mind.
Crown screenshot

Offroad Legends 2 Dogbyte Games is an indie mobile developer studio focusing on racing games.

Torque6 Torque 6 is an MIT licensed 3D engine loosely based on Torque2D. Being neither Torque2D or Torque3D it is the 6th derivative of the original Torque Engine.Torque 6 Material Editor

Kepler Orbits KeplerOrbits - Tool that calculates positions of celestial bodies using their orbital elements. Web Demo

CETech - CETech is Data-Driven game engine and toolbox inspired by Bitsquid/Stingray engine.
CETech screenshot

ioquake3 - A renderer for ioquake3 written in C++ and using bgfx to support multiple rendering APIs.
ioq3-renderer-bgfx screenshot

DLS - DLS the digital logic simulator game.
DLS - Creating a 4-bit Register - DLS: The Sandbox

MAME MAME - Multiple Arcade Machine EmulatorTry MAME in Browser!

Blackshift - Blackshift is a grid-based, space-themed action puzzle game which isn't afraid of complexity — think Chip's Challenge on crack.

Blackshift Trailer, May 2016

Real-Time Polygonal-Light Shading with Linearly Transformed Cosines - Real-Time Polygonal-Light Shading with Linearly Transformed Cosines, Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt, ACM SIGGRAPH 2016

Real-Time Polygonal-Light Shading with Linearly Transformed Cosines

Dead Venture\_venture.html - Dead Venture is a new Drive 'N Gun game where you help a handful of survivals reach the safe haven: a military base on a far island.

Dead Venture - Gameplay Teaser (iOS / Android)

REGoth - Open source reimplementation of the zEngine, used by the game "Gothic" and "Gothic II".

Browser demo:

REGoth Engine

Ethereal Engine EtherealEngine C++ Game Engine and WYSIWYG Editor
EtherealEngine screenshot

Go Rally - Go Rally is top-down rally game with a career mode, multiplayer time challenges, and a track creator.

Go Rally

vg-renderer - A vector graphics renderer for bgfx, based on ideas from both NanoVG and ImDrawList (Dear ImGUI)

Zombie Safari\_safari.html - Do what you please in this Open-World Offroad Driving game: explore massive landscapes, complete challenges, smash zombies, find secret locations, unlock and upgrade cars and weapons, it's up to you!

Zombie Safari - Official Gameplay Trailer (Android)

Smith and Winston - Smith and Winston is an exploration twin stick shooter for PC, PS4 & XBoxOne arriving in late 2018. Smith and Winston features a massively destructable voxel world, rapid twin stick combat, physics puzzles and Metroid style discovery.

Smith and Winston: Gameplay Video

Football Manager 2018 - Football Manager 2018 is a 2017 football management simulation video game developed by Sports Interactive and published by Sega.

Match Engine | Football Manager 2018

WonderWorlds - WonderWorlds is a place to play thousands of user-created levels and stories, make your own using the extensive in-game tools and share them with whomever you want.


two-io / mud - an all-purpose c++ app prototyping library, focused towards live graphical apps and games.


Talking Tom Pool - "Sling and match” puzzle game for mobile devices.

Talking Tom Pool

GPlayEngine - GPlayEngine is C++ cross-platform game engine for creating 2D/3D games based on the GamePlay 3D engine v3.0.

Off The Road - Sandbox off-road driving simulator.

Off The Road

Coal Burnout - Multiplayer PVP rhythm game.


My Talking Tom 2 - Many mini games for mobile devices.

My Talking Tom 2

NeoAxis Engine - Versatile 3D project development environment.


xatlas - Mesh parameterization library


Heroes of Hammerwatch Heroes of Hammerwatch is a rogue-lite action-adventure game set in the same universe as Hammerwatch. Encounter endless hordes of enemies, traps, puzzles, secrets and lots of loot, as you battle your way through procedurally generated levels to reach the top of the Forsaken Spire.

Heroes of Hammerwatch

Babylon Native

Build cross-platform native applications with the power of the Babylon.js JavaScript framework.

Babylon Native


Instantly load and view assets on any device. All you need is a web browser.

SIGGRAPH 2019: Project Nira: Instant Interactive Real-Time Access to Multi-Gigabyte Sized 3D Assets on Any Device

Heroes of Hammerwatch


An open source reimplementation of the game Black & White (2001).




Implementation of Clustered Shading and Physically Based Rendering with the bgfx rendering library.




NIMBY Rails is a management and design sandbox game for railways you build in the real world.






Next generation driver for Final Fantasy VII and Final Fantasy VIII ( with native Steam 2013 release support! )



License (BSD 2-clause)

Copyright 2010-2020 Branimir Karadzic Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.