Agar-SVN | 1 Jul 04:18
Favicon

Agar: r8210 - trunk/core

Author: vedge
Date: 2009-06-30 23:18:04 -0300 (Tue, 30 Jun 2009)
New Revision: 8210

Modified:
   trunk/core/AG_Core.3
Log:
document the AG_InitVideo*() flags in detail.

Modified: trunk/core/AG_Core.3
===================================================================
--- trunk/core/AG_Core.3	2009-06-22 06:54:41 UTC (rev 8209)
+++ trunk/core/AG_Core.3	2009-07-01 02:18:04 UTC (rev 8210)
@@ -110,6 +110,52 @@
 flag set, it is assumed that Agar should render itself using OpenGL
 primitives, otherwise plain framebuffer mode is used.
 .Pp
+.Fn AG_InitVideo
+and
+.Fn AG_InitVideoSDL
+recognize the following
+.Fa flags
+options:
+.Bl -tag -width "AG_VIDEO_OPENGL_OR_SDL "
+.It AG_VIDEO_HWSURFACE
+Request a hardware frame buffer (pass
+.Dv SDL_HWSURFACE
+in SDL mode).
+.It AG_VIDEO_ASYNCBLIT
+Enable asynchronous blitting updates (pass
+.Dv SDL_ASYNCBLIT
+in SDL mode).
+.It AG_VIDEO_ANYFORMAT
+Disable emulation of surface depth (pass
+.Dv SDL_ANYFORMAT
+in SDL mode).
+.It AG_VIDEO_HWPALETTE
+Exclusive palette access (pass
+.Dv SDL_HWPALETTE
+in SDL mode).
+.It AG_VIDEO_DOUBLEBUF
+Enable double-buffering in frame buffer mode.
+.It AG_VIDEO_FULLSCREEN
+Start up application in full-screen mode
+.It AG_VIDEO_RESIZABLE
+If a window manager is available, request that the application be
+resizable.
+.It AG_VIDEO_NOFRAME
+If a window manager is available, disable window decorations.
+.It AG_VIDEO_BGPOPUPMENU
+Whenever the user right-clicks on an area not covered by an Agar window,
+display a standard pop-up menu with the list of active windows.
+.It AG_VIDEO_OPENGL
+Require OpenGL mode.
+If OpenGL is not available, initialization will fail.
+.It AG_VIDEO_OPENGL_OR_SDL
+Try OpenGL mode if available, otherwise fallback to SDL frame-buffer mode.
+.It AG_VIDEO_OVERLAY
+Run in OpenGL "overlay" mode.
+In this mode, Agar will never clear the background of the application or
+swap the GL buffers.
+.El
+.Pp
 The
 .Fn AG_InitGUI
 function initializes the Agar GUI system.

Gmane