/hello-bgfx

Hello-world project for bgfx + GLFW managed by CMake

Primary LanguageC++MIT LicenseMIT

hello-bgfx

Hello-world project to use bgfx with GLFW.

Build

Use CMake:

git clone https://github.com/yuki-koyama/hello-bgfx.git --recursive
mkdir build
cd build
cmake ../
make

Rebuild Shaders

Enable the CMake option HELLO_BGFX_BUILD_SHADERS, and then build the target build-shaders. This target builds the tool shaderc in bgfx and then builds the shader sources by using it.

Dependencies

Notes

  • macOS only
  • OpenGL 4.1 only
  • Right-handed
  • Y up and -Z forward