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
- Host: GitHub
- URL: https://github.com/yuki-koyama/hello-bgfx
- Owner: yuki-koyama
- License: mit
- Created: 2019-03-07T15:14:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-26T00:36:07.000Z (almost 5 years ago)
- Last Synced: 2023-02-28T23:51:41.656Z (over 2 years ago)
- Topics: bgfx, glfw, graphics, hello-world
- Language: C++
- Homepage:
- Size: 39.1 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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