Skip to content

hiergaut/proto-bgfx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

334 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proto-bgfx

Dependencies

  • bgfx, bx, bimg (system libraries)
  • glfw (submodule)
  • tinyobjloader (submodule)

Building (command line instruction)

git clone --recurse-submodules -j4 https://github.com/VirtualGeo/proto-bgfx.git
mkdir build
cd build
cmake ..
make -j4

Run executable (in build directory)

src/proto-bgfx

How to install bgfx, bx, bimg libraries

git clone https://github.com/widberg/bgfx.cmake.git
cd bgfx.cmake
rm -rf bgfx bimg bx
git clone git://github.com/bkaradzic/bx.git
git clone git://github.com/bkaradzic/bimg.git
git clone git://github.com/bkaradzic/bgfx.git

Add line in root CMakeLists.txt

set(CMAKE_DEBUG_POSTFIX "d")
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/bgfx-install)

Generate all the bgfx-install library in the bgfx.cmake repository

On linux

cmake --build <BGFX_CMAKE_BUILD_DEBUG_DIR> --target install
cmake --build <BGFX_CMAKE_BUILD_RELEASE_DIR> --target install

With Visual Studio

Build -> Install bgfx (Release and Debug project)


How to include bgfx, bx, bimg library into proto-bgfx project

You must set the environment variable BGFX_ROOT as the path of bgfx-install on your system

Set BGFX_ROOT CMake cache path variable

With Visual Studio

Project -> CMake Settings

With Qt Creator

Projects -> Add Directory

Visual Studio Code example

in .vscode/settings.json of proto-bgfx project add these lines

"cmake.configureSettings": {
        "BGFX_ROOT": "D:/<PATH_IN_YOUR_SYSTEM>/bgfx-install",
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 73.5%
  • Scala 11.0%
  • SuperCollider 9.5%
  • CMake 5.6%
  • C 0.4%