iauns / cpm-gl-batch-context

CPM module to provide a cross platform OpenGL context for batch rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

CPM module to provide a cross platform OpenGL context for batch rendering

License:MIT License


Languages

Language:C++ 84.6%Language:Objective-C 12.0%Language:Shell 3.4%