CocoGL is an OpenGL ES 1.0/1.1 3D graphics software emulator for Windows and Linux. The emulator accelerates 3D rasterization using template specialization.
This repository contains the complete implementation with a demo program testing various features of OpenGL ES.
The library documentation is available at: https://gtcasl.github.io/cocogl/
CocoGL requires C++17 compiler and above.
Other dependencies include:
- [XLIB 11] (https://www.x.org/wiki/)
- [SDL 2.0] (https://www.libsdl.org/index.php)
GCC 7.1 Install:
$ sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-7 g++-7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
Xlib 11 Install:
$ sudo apt install libx11-dev
SDL 2.0 Install:
$ sudo apt-get install libsdl2-dev
To use CocoGL you must clone the repository and build the sources
$ git clone https://github.com/gtcasl/cocogl.git
$ cd cocogl
$ build.sh all
$ source env.sh
MD2 Viewer
$ cd md2viewer
$ ./md2viewer -?
$ ./md2viewer -b models/quake.tga models/tekkaman.md2
Demo App
$ cd demo
$ ./demo -?
$ ./demo -t7