spoonless / glviewer

some fun with OpenGL 3.3+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

========= GL viewer

A simple OpenGL 3.3+ viewer.

This implementation is based on :

All dependencies are downloaded, compiled and statically linked with cmake: easy build process and distribution!

Cross compilation from Linux to Windows is available thanks to mingw64 compiler with toochain file:

cmake -DCMAKE_TOOLCHAIN_FILE=${GLVIEWER_HOME}/cmake/toolchain-i686-w64-mingw32.cmake ${GLVIEWER_HOME}

Linux dependencies

Dévelopment package for OpenGL and X11 must be installed on Linux plateform. For Debian derived Linux distributions:

sudo apt-get install libgl1-mesa-dev libx11-dev

Description

With glviewer, you can execute GLSL shaders and optionally select an OBJ file to load.

For instance, you can visualize fragment shaders from the really impressive GLSL Sandbox Gallery (http://glslsandbox.com/). Copy paste fragment shader source code on a local file and use glslviewer.exe:

Usage: glviewer.exe mylocalfile.frag

About

some fun with OpenGL 3.3+

License:MIT License


Languages

Language:C 81.4%Language:C++ 15.3%Language:GLSL 1.8%Language:CMake 1.4%