Initializing and quitting libcrtxy.
[The CRT X-Y library (libcrtxy)]


Functions

XY_bool XY_init (XY_options *opts, XY_fixed canvasw, XY_fixed canvash)
 Initialize SDL (video only) and libcrtxy (with rendering and video options from opts), and set the virtual canvas size.
void XY_quit (void)
 Shut down libcrtxy and SDL.

Function Documentation

XY_bool XY_init ( XY_options opts,
XY_fixed  canvasw,
XY_fixed  canvash 
)

Initialize SDL (video only) and libcrtxy (with rendering and video options from opts), and set the virtual canvas size.

Parameters:
opts is a pointer to an options structure that has been filled.
canvasw is the width (in XY_fixed units) of a virtual canvas which will be scaled to the real display.
canvash is the height (in XY_fixed units) of a virtual canvas which will be scaled to the real display.
Returns:
On success: XY_TRUE. On failure, XY_FALSE, and sets error code to one of the following:
Todo:
Allow setting window class (SDL_VIDEO_X11_WMCLASS=xxx.yyy)
Todo:
Allow enabling/disabling screensaver (SDL_VIDEO_ALLOW_SCREENSAVER=1)
Todo:
Allow positioning the window (SDL_VIDEO_WINDOW_POS=center/nopref/...)
Todo:
Allow setting window icon (SDL_WM_SetIcon())
Todo:
Allow setting window title (SDL_WM_SetCaption())
Todo:
Allow hiding mouse (SDL_ShowCursor()) (separate function?)
Todo:
Allow resizable windows (SDL_RESIZABLE)

void XY_quit ( void   ) 

Shut down libcrtxy and SDL.


Generated on Tue Sep 2 23:45:36 2008 for libcrtxy by  doxygen 1.5.5