FreeBSD Manual Pages
AG_DRIVERSDL2FB(3) Library Functions Manual AG_DRIVERSDL2FB(3) NAME AG_DriverSDL2FB -- agar SDL2 frame-buffer driver DESCRIPTION The Agar sdl2fb driver provides an interface to the Simple DirectMedia Layer (SDL) library version 2 (SDL2), and renders Agar GUI elements di- rectly to the frame-buffer. Using AG_InitVideoSDL(3) as opposed to AG_InitGraphics(3), it is possi- ble 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 ctrl Enable game controller (gamepad) support. haptic Enable haptic (force feedback) subsystem. joy Enable joystick input device support. width Width (in pixels, in % of total desktop or "auto"). height Height (in pixels, in % of total desktop or "auto"). bgColor Solid background color (in 8-bit "R/G/B" format). !bgPopup Disable the standard contextual popup menu shown on right-click against the background. The standard popup menu shows the list of active Agar windows. clampOnResize Whenever the display is resized, clamp Agar window po- sitions and sizes to fit the new display size. depth Depth (in bits per pixel or "auto"). fpsMax Limit refresh rate in frames/second (e.g, "60"). SEE ALSO AG_DriverSDL2GL(3), AG_DriverSDL2MW(3), AG_DriverSDLFB(3), AG_DriverSDLGL(3), AG_Driver(3), AG_DriverSw(3), AG_InitGraphics(3), AG_Intro(3) Simple DirectMedia Layer: https://libsdl.org/ OpenGL: https://www.opengl.org/ HISTORY The sdl2fb driver first appeared in Agar 1.7.0. Agar 1.7 December 23, 2022 AG_DRIVERSDL2FB(3)
NAME | DESCRIPTION | INHERITANCE HIERARCHY | EXAMPLES | OPTIONS | SEE ALSO | HISTORY
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=AG_DriverSDL2FB&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
