Gel2D - The free/open source game creation suite

Static Public Member Functions
gel::GelVideo Class Reference

Video mode handling. More...

#include <gelVideo.h>

List of all members.

Static Public Member Functions

static GelSize getScreenRes ()
 Gets the dimensions of the desktop.
static int getScreenWidth ()
 Gets the width of the desktop.
static int getScreenHeight ()
 Gets the height of the desktop.
static int getVideoModes (GelVideoMode *list, int maxcount)
 Queries a list of video modes available for the display device.

Detailed Description

Video mode handling.


Member Function Documentation

static GelSize gel::GelVideo::getScreenRes ( ) [static]

Gets the dimensions of the desktop.

Returns:
The desktop's dimensions.
static int gel::GelVideo::getScreenWidth ( ) [static]

Gets the width of the desktop.

Returns:
: The width of the desktop in pixels.
static int gel::GelVideo::getScreenHeight ( ) [static]

Gets the height of the desktop.

Returns:
: The height of the desktop in pixels.
static int gel::GelVideo::getVideoModes ( GelVideoMode list,
int  maxcount 
) [static]

Queries a list of video modes available for the display device.

Parameters:
list: Pointer to a GelVideoMode struct.
maxcount: The maximum number of video modes to query. This should be set to the number of modes your GelVideoMode structure can hold.
Returns:
The number of video modes that were found.

The documentation for this class was generated from the following file: