Warning - for use with old version of Maverik (5.4) click here for latest versions

D3D Maverik - 0.2 (change log)

D3D Maverik is about 90% complete. It should run fine for any applications which don't use display lists or have embedded Open GL calls. Speedwise it's about 10% slower than using OpenGL on the cards I've tried it on, except for drawing text where it is much faster. Its main advantage is the ability to use hardware rendering for multiple windows, which is something I've failed to achieve using Open GL. Try the examples/misc/overview example.

Building D3D Maverik

D3D Maverik requires Direct Draw 7 and Direct 3D 7 include files. Libraries are not required as the DLLs are loaded dynamically, although you obviously need to have DirectX7 installed on your machine.

Download include files and gunzip and untar them to somewhere suitable (e.g. /usr/local/include).

Download new gfx files and gunzip and untar them to in the top level Maverik directory (they unpack to src/gfx). Warning: this will overwrite previous (Open GL) versions of mav_gfx.c and mav_gfxWM.c, so rename these files if you want to keep them.

You will need to have downloaded and installed my other Maverik files - make sure you unpack these before unpacking the D3D files

Build the library with make.

Building and running Applications

Applications need to be linked with -lmaverik -lgdi32 -luser32. You may need to link with -lstdc++ and -lpng depending on your Maverik compile options.

When run, D3D Maverik looks for the file .mavd3d_config in ${HOME}. This file is created by using the D3D config tool. Download and make this, then run to choose display drivers, display mode for fullscreen, texture size, whether to force use of 1 bit alpha textures, and whether to use anti-aliasing (where available). Note: anti-aliasing support will probably crash your machine even when config thinks it is available - if this happens, then don't select it.

mav_opt_fullscreen overrides the config settings when it is set. When running in fullscreen, output to the bash terminal really slows things down, so redirect stdout and stderr to files.

Some common errors/warnings:

Video cards known to work

If you try D3D Maverik on a card not listed here please email me and let me know if it worked.