概述
-
bgfx是什么?
跨平台,与图形API无关的渲染库,BSD-2许可开源。
-
支持的渲染后端
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)
-
支持操作系统:
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)
-
支持的编译器
Clang 3.3 and above
GCC 5 and above
vs2017 and above
-
支持的语言
C/C++ API documentation
C# language API bindings #1
C#/VB/F# language API bindings #2
D language API bindings
Go language API bindings
Haskell language API bindings
Lightweight Java Game Library 3 bindings
Lua language API bindings
Nim language API bindings
Python language API bindings #1
Python language API bindings #2
Rust language API bindings
Swift language API bindings
Pascal language API bindings
-
github地址
https://github.com/bkaradzic/bgfx
-
联系方式
GitHub Discussions
Discord Chat
GitHub @bkaradzic
Twitter @bkaradzic
-
调试和分析工具
RenderDoc
使用DX11或OpenGL渲染器时,bgfx中集成了RenderDoc的加载。可以拖动renderdoc.dll到工作目录,它将在bgfx初始化期间自动加载。通过按F11随时捕获帧 。
-
SDL,GLFW等
可以将bgfx与SDL,GLFW和类似的跨平台窗口库一起使用。主要要求是窗口库提供对用于创建Direct3D设备或OpenGL上下文的本机窗口句柄的访问。