Subsections


6. OpenGL Wrapper

6.1 Introduction

FlowVR Render comes with a special renderer: an OpenGL Wrapper. It enables running unmodified OpenGL applications, based on a simple framebuffer grabbing.

6.2 Example

An example using this wrapper is given in the examples/opengl-wrapper directory.

6.2.1 Tie an OpenGL Application to the Renderer

You first need to modify the examples/opengl-wrapper/net/opengl-wrapper.mml.xml file to put the application executable name in the exec template. Arguments can be given by appending them to the exec template. If this application needs to be started in a particular directory, use the cd template to switch to this directory before the application is launched. One template is remaining : opengl template is used to specify which OpenGL library should be loaded at runtime. The default one is /usr/lib/libGL.so.1.

warning: some installations might have this file installed under /usr/X11R6/lib. As for 64bit linux systems, the library might be located under /usr/lib64.

6.2.2 Compilation

Building the example is simply done by executing:

make

6.2.3 Execution

Executing the example is done by executing (a flowvr deamon must be running of course):

make run

2009-04-06