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
- Host: GitHub
- URL: https://github.com/afiskon/c-opengl-text
- Owner: afiskon
- License: mit
- Created: 2016-01-04T19:46:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T09:54:54.000Z (over 1 year ago)
- Last Synced: 2025-05-07T02:48:33.795Z (about 1 year ago)
- Topics: 3d, 3d-graphics, c, cross-platform, game-development, opengl
- Language: C
- Homepage: https://eax.me/opengl-text/
- Size: 23.6 MB
- Stars: 18
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.