Frz::SDLSystem Class Reference

SDL graphics environment. More...

#include <frz_sdl.hpp>

Inheritance diagram for Frz::SDLSystem:
Inheritance graph
[legend]
Collaboration diagram for Frz::SDLSystem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SDLSystem (const char *title, Script &s, int width, int height, int videomode, uint32_t t0=0)
 Constructs a SDLSystem object.
int operator() ()
 Executes the animation.

Static Public Member Functions

static int parseCmd (int argc, char **argv, int &width, int &height, int &videomode, uint32_t &t0)
 Parses the command line and populate initialization data.

Detailed Description

SDL graphics environment.

This is a graphics environment which uses the SDL library for graphics output.


Constructor & Destructor Documentation

Frz::SDLSystem::SDLSystem ( const char *  title,
Script s,
int  width,
int  height,
int  videomode,
uint32_t  t0 = 0 
)

Constructs a SDLSystem object.

Parameters:
title Window title.
s The animation script object.
width Picture width in pixels.
height Picture height in pixels.
videomode SDL video mode.
t0 Start time value in milliseconds.

Member Function Documentation

static int Frz::SDLSystem::parseCmd ( int  argc,
char **  argv,
int &  width,
int &  height,
int &  videomode,
uint32_t &  t0 
) [static]

Parses the command line and populate initialization data.

The command line is parsed for specific values of the constructor arguments. If some values are not provided, default values are set. All arguments passed by reference are modified.

Parameters:
argc First argument of the main function.
argv Second argument of the main function.
width Picture width in pixels.
height Picture height in pixels.
videomode SDL video mode.
t0 Start time value in milliseconds.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends
Generated on Thu Jun 10 17:37:47 2010 for freezer-0.1.0 by  doxygen 1.6.3