GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_DRIVERSDLGL(3) FreeBSD Library Functions Manual AG_DRIVERSDLGL(3)

AG_DriverSDLGL
agar SDL OpenGL driver

The Agar sdlgl driver provides an interface to the Simple DirectMedia Layer (SDL) library, and renders GUI elements as OpenGL primitives and textures. Using AG_InitVideoSDL(3) as opposed to AG_InitGraphics(3), it is possible to attach Agar to an existing SDL display surface. If the SDL surface has the SDL_OPENGL flag set, Agar selects the sdlgl driver automatically.

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

AG_InitGraphics("sdlgl(width=640:height=480:depth=32)");
AG_InitGraphics("sdlgl(out=%08d.jpg:outFirst=10)");
AG_InitVideoSDL(screen, 0);

stereo
Request a stereoscopic visual.
width
Width in pixels (or ‘auto’ for available desktop size).
height
Height in pixels (or ‘auto’).
depth
Depth in bits per pixel (or ‘auto’).
fpsMax
Limit GUI refresh rate in frames/second (default = 60fps).
out
Dump video frames to JPEG or PNG image files. The filename path may include a printf-style (with frame number as argument). For example, ‘%08d.jpg’ will output frames to 00000001.jpg, 00000002.jpg, etc.
outFirst
Override first frame number (default = 0).
outLast
Terminate application after # frames have been rendered.
bgColor
Solid background color (see AG_ColorFromString(3)). Default is "rgb(0,0,0)".
bgPopup
Show popup menu upon middle / right-button click in the background.
jpegQual
If exporting to JPEG, set quality factor (100% = best).
jpegDCT
If exporting to JPEG, specify DCT method ("islow" for slow but accurate integer method, "ifast" for fast but less accurate integer method, or "float" for floating point method).

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

Simple DirectMedia Layer

OpenGL

The sdlgl driver first appeared in Agar 1.4.0.
May 2, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.