An open API service indexing awesome lists of open source software.

https://github.com/afiskon/c-opengl-text

OpenGL example in pure C: text rendering, textures, etc
https://github.com/afiskon/c-opengl-text

3d 3d-graphics c cross-platform game-development opengl

Last synced: 11 months ago
JSON representation

OpenGL example in pure C: text rendering, textures, etc

Awesome Lists containing this project

README

          

# c-opengl-text

On Linux you will need these packages:

```
g++-4.8 git cmake libgl1-mesa-dev libxrandr-dev libxinerama-dev
libxcursor-dev libglu1-mesa-dev libxi-dev
```

Usage:

```
git submodule init
git submodule update
mkdir build
cd build

# on *nix:
cmake ..
make -j4 demo emdconv

# on Windows:
cmake -DASSIMP_BUILD_ASSIMP_TOOLS=OFF -G "MinGW Makefiles" ..
mingw32-make -j4 demo emdconv

cd ..
./build/emdconv models/skybox.blend skybox.emd
./build/demo
```

* WASD + mouse - move camera
* M - enable/disable mouse interception
* X - enable/disable wireframes mode
* 1 - enable/disable white directional light
* 2 - enable/disable red point light
* 3 - enable/disable blue spot light
* Q - quit

Tested on Linux, FreeBSD, MacOS and Windows.