DESCRIPTION
The Agar
sdl2mw driver provides an interface to the Simple DirectMedia Layer (SDL) library
version 2 (SDL2) and renders GUI elements using OpenGL primitives and
managed textures under separate windows.
INHERITANCE HIERARCHY
AG_Driver(3)-> AG_DriverMw(3)-> AG_DriverSDL2MW.
EXAMPLES
AG_InitGraphics("sdl2mw"); AG_InitGraphics("sdl2mw(stereo)"); AG_InitGraphics("sdl2mw(out=%08d.jpg)");
OPTIONS
ctrl | Enable game controller (gamepad) support. |
haptic | Enable haptic (force feedback) subsystem. |
joy | Enable joystick input device support. |
debug | Capture GL_DEBUG_OUTPUT errors. |
noAutoCapture | Disable mouse auto-capture on click (see SDL2 docs for SDL_HINT_MOUSE_AUTO_CAPTURE). May be set by widget code with the setMouseAutoCapture() AG_Driver(3) operation. |
out | Export video frames to JPEG or PNG. Specify a format string for output file names. Example: %04d.jpg will output frames to 0001.jpg, 0002.jpg, and so on. |
outFirst | Override first frame number (default = 0). |
outLast | Terminate after # frames have been rendered. |
jpegDCT | (JPEG Export) DCT method ("islow", "ifast" or "float"). |
jpegQual | (JPEG Export) Quality factor (100% = best). |
stereo | Request a stereoscopic visual. |
SEE ALSO
AG_DriverSDL2FB(3), AG_DriverSDL2GL(3), AG_DriverSDLFB(3), AG_DriverSDLGL(3), AG_Driver(3), AG_DriverMw(3), AG_GL(3), AG_InitGraphics(3), AG_Intro(3)
HISTORY
The
sdl2mw driver first appeared in
Agar 1.7.0.