Null video?

I was very pleased recently when ZQuake adopted SDL. I have been
looking for a way to provide null video output in a clean way for some
time and I gather (from Googling and finding mailing list archives) that
some time ago a patch was accepted into SDL that provides a null video
device.

I am very new to SDL – please can someone direct me to the appropriate
documentation for using this null video device?

We require null video output for the AGRIP project
( http://www.agrip.org.uk/ ) which consists partly of a customised build
of ZQuake.

Any information on how best to use SDL to provide null video output
would be much appreciated. I would ideally like to simply take the SDL
version of ZQuake and change the bits that initialise the video to use
the null device.

Finally, is the null device compiled in and usable in normal builds of
SDL? I gather the compilation procedure is not as easy on Windows
(which most of AGRIP’s audience use) as it is on *nix – so would like
to use the binaries already provided, if possible.

best regards,–
Matthew T. Atkinson <@Matthew_T_Atkinson>

Any information on how best to use SDL to provide null video output
would be much appreciated. I would ideally like to simply take the SDL
version of ZQuake and change the bits that initialise the video to use
the null device.

Set the environment variable SDL_VIDEODRIVER to “dummy” then run the
program as normal…you should use the software renderer and not OpenGL,
if this build of quake supports that.

Finally, is the null device compiled in and usable in normal builds of
SDL? I gather the compilation procedure is not as easy on Windows
(which most of AGRIP’s audience use) as it is on *nix – so would like
to use the binaries already provided, if possible.

It’s compiled in on Linux by default, don’t know about Windows.

–ryan.

Thanks for the response!

Set the environment variable SDL_VIDEODRIVER to “dummy” then run the
program as normal…you should use the software renderer and not OpenGL,
if this build of quake supports that.

I don’t think the SDL part supports software rendering, but maybe it
would not be too hard to make it happen. The old software version has
some hideous dependencies on Windows, but these may be negated with a
move to SDL. I’ll have to look into it.

It’s compiled in on Linux by default, don’t know about Windows.

Ah, right well I’ll start messing around on Linux trying to get software
rendering working through SDL, excellent.

best regards,On Sun, 2005-07-24 at 02:18 -0400, Ryan C. Gordon wrote:


Matthew T. Atkinson <@Matthew_T_Atkinson>