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
EXAMPLES
AG_InitGraphics("sdlgl(width=640:height=480:depth=32)");
AG_InitGraphics("sdlgl(out=%08d.jpg:outFirst=10)");
AG_InitVideoSDL(screen, 0);
|
OPTIONS
| width | Width in pixels (or
auto for available desktop size).
| | height | Height in pixels (or
auto). | | depth | Depth in bits per pixel (or
auto). | | out | Capture 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.
| | outFirst | Name the first output file following this frame number.
| | outLast | Terminate the application after this many frames have been rendered.
|
|
SEE ALSO
HISTORY