This project is a starter template for using SDL3 with BGFX in C. It includes basic examples for rendering a clear screen, a triangle, and a quad.
- CMake
- A C/C++ compiler
-
Clone the repository:
git clone git@github.com:seemsindie/sdl3-bgfx-starter-C.git cd sdl3-bgfx-starter-C -
Create a build directory and navigate into it:
mkdir build cd build -
Run CMake to configure the project:
cmake ..
-
Build the project:
make -j8
After building the project, you can run the examples:
-
Clear screen example:
./sdl3-bgfx-clear
-
Triangle example:
./sdl3-bgfx-triangle
-
Quad example:
./sdl3-bgfx-quad