Agar Logo

Agar 1.7 Manual

(Printable Version)
AG_DriverSDL2FB(3)

DESCRIPTION

ScreenshotThe Agar sdl2fb driver provides an interface to the Simple DirectMedia Layer (SDL) library version 2 (SDL2), and renders Agar GUI elements directly to the frame-buffer.

Using AG_InitVideoSDL(3) as opposed to AG_InitGraphics(3), it is possible to attach Agar to an existing SDL2 display surface.

INHERITANCE HIERARCHY

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

EXAMPLES

AG_InitGraphics("sdl2fb(width=640:height=480)");
AG_InitGraphics("sdl2fb(width=60%:height=80%)");

AG_InitVideoSDL(an_existing_SDL_screen, 0);

OPTIONS

ctrlEnable game controller (gamepad) support.
hapticEnable haptic (force feedback) subsystem.
joyEnable joystick input device support.
widthWidth (in pixels, in % of total desktop or "auto").
heightHeight (in pixels, in % of total desktop or "auto").
bgColorSolid background color (in 8-bit "R/G/B" format).
!bgPopupDisable the standard contextual popup menu shown on right-click against the background. The standard popup menu shows the list of active Agar windows.
clampOnResizeWhenever the display is resized, clamp Agar window positions and sizes to fit the new display size.
depthDepth (in bits per pixel or "auto").
fpsMaxLimit refresh rate in frames/second (e.g, "60").

SEE ALSO


HISTORY

The sdl2fb driver first appeared in Agar 1.7.0.

Csoft.net ElectronTubeStore