Agar

<-- Back to AG_Intro.3

DESCRIPTION

The Agar sdlfb driver provides an interface to the Simple DirectMedia Layer (SDL) library, 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)");
AG_InitGraphics("sdlfb(width=60%:height=80%)");
AG_InitGraphics("sdlgl(bgColor=0/120/120)");

AG_InitVideoSDL(an_existing_SDL_screen, 0);

OPTIONS

widthWidth in pixels, in % of available desktop space, or "auto".
heightHeight in pixels, in % of available desktop space, or "auto".
depthDepth in bits per pixel, or "auto".
fpsMaxLimit GUI refresh rate in frames/second (default = 60fps).
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).

SEE ALSO

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

Lk https://libsdl.org/ Simple_DirectMedia_Layer

Lk https://www.opengl.org/ OpenGL

HISTORY

The sdlfb driver first appeared in Agar 1.4.0.
Csoft.net ElectronTubeStore