Skip to content

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

License

Notifications You must be signed in to change notification settings

iauns/cpm-gl-batch-context

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published