All Projects → floooh → fips-bgfx

floooh / fips-bgfx

Licence: other
fipsified version of bgfx (https://github.com/bkaradzic/bgfx)

Programming Languages

CMake
9771 projects
python
139335 projects - #7 most used programming language
Vim Script
2826 projects
Batchfile
5799 projects

Labels

Projects that are alternatives of or similar to fips-bgfx

usmap
🗺 Create US maps including Alaska and Hawaii in R
Stars: ✭ 52 (+205.88%)
Mutual labels:  fips
bgfx-python
Python 3.7+ wrapper for the BGFX library. 🐍
Stars: ✭ 99 (+482.35%)
Mutual labels:  bgfx
harfang3d
HARFANG 3D source code public repository
Stars: ✭ 173 (+917.65%)
Mutual labels:  bgfx
cocos2d-bgfx
cocos2d-x-lite use bgfx as the rendering backend
Stars: ✭ 54 (+217.65%)
Mutual labels:  bgfx
Natrix
Fast fluid simulation in Python 🐍
Stars: ✭ 25 (+47.06%)
Mutual labels:  bgfx
bgfx-header-extension-library
Header-only effects and helper library for Bgfx to help you hit the ground running. Includes a bunch of post processing filters to complete common graphical tasks
Stars: ✭ 35 (+105.88%)
Mutual labels:  bgfx
RavEngine
A fast, easy to use C++20 3D game library for modern computers
Stars: ✭ 122 (+617.65%)
Mutual labels:  bgfx
sdl stb font
Renders text using STB_Truetype in pure SDL
Stars: ✭ 40 (+135.29%)
Mutual labels:  bgfx
MitchEngine
The 3D game engine so good it has my name in it.
Stars: ✭ 19 (+11.76%)
Mutual labels:  bgfx
geonamescache
geonamescache - a Python library for quick access to a subset of GeoNames data.
Stars: ✭ 76 (+347.06%)
Mutual labels:  fips
rapp
Cross-platform entry point library
Stars: ✭ 57 (+235.29%)
Mutual labels:  bgfx
bigger
bigg (bgfx + imgui + glfw + glm) + utils
Stars: ✭ 101 (+494.12%)
Mutual labels:  bgfx
Oryol
A small, portable and extensible C++ 3D coding framework
Stars: ✭ 1,900 (+11076.47%)
Mutual labels:  fips

fips-bgfx

Build Status

fipsified version of bgfx (https://github.com/bkaradzic/bgfx)

Get fips and clone fips-bgfx:

> mkdir fips-workspace
> cd fips-workspace
> git clone [email protected]:floooh/fips.git
> cd fips
> ./fips clone fips-bgfx
> cd ../fips-bgfx

Build and run on command line:

Build a debug config with xcodebuild (the default build config on OSX):

> ./fips build
> ./fips list targets
> ./fips run 00-helloworld
> ./fips run 01-cubes
...

Nicer command line builds with make or ninja:

# with make:
> ./fips set config osx-make-release
> ./fips build
> ./fips run 00-helloworld
# with ninja:
> ./fips set config osx-ninja-release
> ./fips build
> ./fips run 00-helloworld
...
> ./fips unset config

Work in Xcode:

> ./fips unset config
> ./fips open
[this should open Xcode and load the fips-bgfx project]

Most demos require the current working directory set to fips-bgfx/bgfx/examples/runtime, do this in Xcode by selecting the build target (e.g. 01-cubes), go to 'Edit Scheme... -> Options -> Working Directory'.

See fips-bgfx/fips.yml for the list of demos that require the working directory to be set.

Test for emscripten:

Only one sample currently works on emscripten, '17-drawstress':

# setup emscripten SDK for fips if not done before:
> ./fips setup emscripten
# check if all required tools are there (e.g. python2):
> ./fips diag tools
...
# select emscripten build config, configure, build and run
> ./fips set config emsc-make-release
# enable emscripten FS (FileSystem) module, in ccmake,
# find the FIPS_EMSCRIPTEN_USE_FS option, and set it to ON,
# then press (c)onfigure and (g)enerate:
> ./fips config
...
> ./fips make 17-drawstress
> ./fips run 17-drawstress

Once the browser opens you may have to refresh (F5) if the sample doesn't load immediately.

Known Issues

No Shader Code Generation for DirectX on non-Windows platforms

Shader code generation doesn't work fully because the bgfx shader compiler cannot create HLSL shader on non-windows platforms, the result will mess up the generated xxx.bin.h files checked in the source tree, so it's better to not commit generated files or generate them on windows if there is a need to commit them.

Samples

Some samples does not work on all platforms. Most specifically Emscripten and PNaCL does not support the following samples:

- 13-stencil
- 14-shadowvolumes
- 16-shadowmaps

For missing bx::CtrFileReader or equivalent implementation (see BX_CONFIG_CRT_FILE_READER_WRITER).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].