Agar
Agar 1.7 Manual

AG_DriverSDLFB(3)

DESCRIPTION

ScreenshotThe Agar sdlfb driver provides an interface to the Simple DirectMedia Layer (SDL) library version 1.2, and renders 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 SDL display surface.

INHERITANCE HIERARCHY

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

EXAMPLES

AG_InitGraphics("sdlfb(width=640:height=480:joy)");
AG_InitGraphics("sdlfb(width=60%:height=80%)");
AG_InitGraphics("sdlgl(bgColor=0/120/120)");

AG_InitVideoSDL(an_existing_SDL_screen, 0);

OPTIONS

joyEnable joystick input device support.
widthWidth (in pixels, in % of desktop space or "auto").
heightHeight (in pixels, in % of desktop space or "auto").
depthDepth (in bits per pixel or "auto").
fpsMaxLimit refresh rate in frames/second (e.g., "60").
bgColorSolid background color specified as "R/G/B", from "0/0/0" (black) to "255/255/255" (white).
!bgPopupDisable the right-click background popup menu (which includes, notably the list of active windows).
clampOnResizeWhenever the display is resized, clamp Agar window positions and sizes to fit the new display size.

SEE ALSO

AG_DriverSDL2FB(3), AG_DriverSDL2GL(3), AG_Driver(3), AG_DriverSw(3), AG_InitGraphics(3), AG_Intro(3)

HISTORY

The sdlfb driver first appeared in Agar 1.4.0. The clampOnResize and joy options appeared in Agar 1.7.0.


ElectronTubeStore Csoft.net www.libAgar.org is © 2024 Julien Nadeau Carriere <vedge@csoft.net>.
Support LibAgar: www.patreon.com/libAgar.