Skip to content
OpenGL example in pure C: text rendering, textures, etc
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assimp @ d393ab1 emdconv now is building on FreeBSD Feb 15, 2016
demo Fix PVS-Studio for Linux Beta warnings Sep 23, 2016
glfw @ 323d4a4 Initial commit Jan 4, 2016
glxw @ 2901784
models Initial commit Jan 4, 2016
shaders Initial commit Jan 4, 2016
textures Initial commit Jan 4, 2016
.gitignore Initial commit Jan 4, 2016
.gitmodules
CMakeLists.txt Building on FreeBSD with clang fixed Feb 15, 2016
LICENSE Initial commit Jan 4, 2016
README.md Building on FreeBSD with clang fixed Feb 15, 2016

README.md

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

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.

You can’t perform that action at this time.