Agar


Note: The Agar manual pages follow certain conventions, notably concerning function return values. Please read AG_Intro(3) first.


DESCRIPTION

The Agar sdlgl driver provides an interface to the Simple DirectMedia Layer (SDL) library, and renders GUI elements as OpenGL primitives and textures. Using AG_InitVideoSDL(3) as opposed to AG_InitGraphics(3), it is possible to attach Agar to an existing SDL display surface. If the SDL surface has the SDL_OPENGL flag set, Agar selects the sdlgl driver automatically.

INHERITANCE HIERARCHY

AG_Driver(3)-> AG_DriverSw(3)-> AG_DriverSDLGL.

EXAMPLES

AG_InitGraphics("sdlgl(width=640:height=480:depth=32)");
AG_InitGraphics("sdlgl(out=%08d.jpg:outFirst=10)");
AG_InitVideoSDL(screen, 0);

OPTIONS

widthWidth in pixels (or auto for available desktop size).
heightHeight in pixels (or auto).
depthDepth in bits per pixel (or auto).
outCapture display to specified output file(s). Supported file formats include JPEG and PNG. The specified path may include a printf-style format string for a numerical argument. For example, %08d.jpg will output to a series of JPEG files.
outFirstName the first output file following this frame number.
outLastTerminate the application after this many frames have been rendered.

SEE ALSO

AG_Intro(3), AG_Driver(3), AG_DriverSDLFB(3), AG_GL(3)
http://libsdl.org/
http://www.opengl.org/

HISTORY

The sdlgl driver first appeared in Agar 1.4.0.