CPM module to provide a cross platform OpenGL context for batch rendering
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gl-batch-context
tests
.dox
.gitignore
.travis.yml
CMakeLists.txt
LICENSE
README.md
Vagrantfile
bootstrap.sh
cloneCookbooks.sh

README.md

cpm-gl-batch-context

Build Status

Module to provide a cross platform OpenGL context for testing rendering algorithms. An OSMesa context is provided so that you can test rendering on platforms that do not have a video card installed such as VMs.

Usage

Context

#include <gl-batch-context/Context.h>

Issue a call to Context::createBatchContext to create a new offscreen OpenGL context for your platform.

See documentation.

Options

  • USE_OS_MESA - if you set this to TRUE, and you are compiling on Linux, then an OSMesa context will be created for you. This is a software rendering context which will allow you to test your rendering algorithms on platforms that have little or no graphics support.

OSMesa Context

If you are using the OS mesa context, be sure not to link against any other OpenGL libraries. That means that there should be no reference to OPENGL_LIBRARIES in any of your CMakeLists.txt files. This module follows this convention. But it does add OPENGL_LIBRARIES if you do not request an OSMesa context.