/glex

GL/GLSL examples

Primary LanguageC++OtherNOASSERTION

Prerequisites

  • GNU Autotools
  • OpenGL 3.0
  • C++11 compiler (tested with GCC 4.8.3+)
  • Boost
  • GLEW
  • SDL2
  • GLM

On Fedora 20 or later you can install these using a single command (as root):

$ yum install boost-* glew-devel SDL2_* glm-devel

Building

After cloning the source code or extracting a distributed archive, change to the directory where the source code is:

$ autoreconf -i
$ ./configure
$ make

Alternatively, if you'd like to build the project in debug mode use:

$ make CXXFLAGS=-DDEBUG

Running

The build process should create a binary that can be executed as follows:

$ ./src/shaderexample

See

$ ./src/shaderexample --help

for usage instructions.