Skip to content

Repository files navigation

SDL3-BGFX Starter C Project

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.

Getting Started

Prerequisites

  • CMake
  • A C/C++ compiler

Building the Project

  1. Clone the repository:

    git clone git@github.com:seemsindie/sdl3-bgfx-starter-C.git
    cd sdl3-bgfx-starter-C
  2. Create a build directory and navigate into it:

    mkdir build
    cd build
  3. Run CMake to configure the project:

    cmake ..
  4. Build the project:

    make -j8

Running the Examples

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

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages