davelib4

builing an application

The example program uses OpenGLEAN as a platform independent way to open an OpenGL window. For Windows there is a patched version that implements quadbuffer windows and borderless windows.
In Windows link against Ws2_32.lib for network functionality.
To use soft edge blending masks you will need to link against zlib and libpng and use #define WITH_BLENDMASK.

running an application

You can run an application with default settings without special command line parameters.
TODO: may crash at the moment...

configuration file

To use a configuration file, use the following command line parameters:
InstanceName=master -davecfg config.txt
TODO: it's confusing to use two different conventions for command line parameters, change this!
As the example program shows, the davelib can parse all command line parameters and ignore the parameters it can't use. As an example you can write an image viewer that always uses the first command line parameter to load your file like this:
myImageViewer.exe image.jpg InstanceName=master -davecfg config.txt
Find example configuration files in the davelib4\test folder.

In davelib4/sampleApplication/bin you find example configuration and batch files for starting the sample application.

davelib classes

DaveWindowManager

To support many possible setups (without recompiling) the number, type and position of windows can be specified in the config file. DaveWindowManager does this job for you, but unfortunately this means you should always iterate through the list of windows or buffers. Note that when loading a texture you have to initialized it for each window. Note that you need to draw each buffer (a quadbuffer stereo window has two buffers).

© CGV