An open API service indexing awesome lists of open source software.

https://github.com/yuki-koyama/hello-bgfx

Hello-world project for bgfx + GLFW managed by CMake
https://github.com/yuki-koyama/hello-bgfx

bgfx glfw graphics hello-world

Last synced: 8 months ago
JSON representation

Hello-world project for bgfx + GLFW managed by CMake

Awesome Lists containing this project

README

          

# hello-bgfx

Hello-world project to use [bgfx](https://github.com/bkaradzic/bgfx) with [GLFW](https://github.com/glfw/glfw).

## Build

Use CMake:
```bash
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

- [bgfx.cmake](https://github.com/JoshuaBrookover/bgfx.cmake)
- [bgfx](https://github.com/bkaradzic/bgfx)
- [bx](https://github.com/bkaradzic/bx)
- [bimg](https://github.com/bkaradzic/bimg)
- [GLFW](https://github.com/glfw/glfw)
- [glew-cmake](https://github.com/Perlmint/glew-cmake)
- [GLM](https://github.com/g-truc/glm)

## Notes

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