Agar Logo

Agar 1.7 Manual

(Printable Version)
AG_DriverSDL2MW(3)

DESCRIPTION

ScreenshotThe 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

ctrlEnable game controller (gamepad) support.
hapticEnable haptic (force feedback) subsystem.
joyEnable joystick input device support.
debugCapture GL_DEBUG_OUTPUT errors.
noAutoCaptureDisable 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.
outExport 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.
outFirstOverride first frame number (default = 0).
outLastTerminate after # frames have been rendered.
jpegDCT(JPEG Export) DCT method ("islow", "ifast" or "float").
jpegQual(JPEG Export) Quality factor (100% = best).
stereoRequest a stereoscopic visual.

SEE ALSO


HISTORY

The sdl2mw driver first appeared in Agar 1.7.0.

Csoft.net ElectronTubeStore