8000 GitHub - vinnyhorgan/bgfx-starter: A minimal template for bgfx
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vinnyhorgan/bgfx-starter

Repository files navigation

bgfx starter

A minimal template to get started using the cross platform graphics library bgfx. By combining bgfx with a windowing library such as glfw we can create graphical applications which run on all systems using the best graphics api available.

Features

  • Simple and clean
  • Up to date
  • Easy build system
  • Includes common utilities

Requirements

You need Premake in your PATH.

For Windows you can use either MSVC or MinGW. For Linux you need standard build tools.

For development Visual Studio Code is suggested with the C++ extension.

Getting Started

To get started clone the repository and its submodules:

git clone --recurse-submodules https://github.com/vinnyhorgan/bgfx-starter.git

Then from inside the folder run:

Windows

MSVC

premake5 vs2022

Then you can open the generated solution using Visual Studio. If you have msbuild in your PATH, then you can just run:

.\scripts\build_msvc.bat

MinGW

premake5 gmake

Then:

.\scripts\build_mingw.bat

Linux

On linux you can choose between X11 and Wayland.

X11

premake5 gmake

Wayland

premake5 --use-wayland gmake

Then:

./scripts/build_linux.sh

TODO

  • Add MacOS support
  • Fix any issues

Credits

Thanks to all the following amazing projects:

This template actually uses a fork of glfw that fixes event blocking on Windows:

About

A minimal template for bgfx

Topics

Resources

License

Stars

Watchers

Forks

0