Colobot
Public Member Functions | Public Attributes | List of all members
Gfx::DeviceConfig Struct Reference

General config for graphics device. More...

#include <device.h>

Public Member Functions

void LoadDefault ()
 Loads the default values. More...
 

Public Attributes

Math::IntPoint size = Math::IntPoint(800, 600)
 Screen size. More...
 
int bpp = 32
 Bits per pixel. More...
 
bool fullScreen = false
 Full screen. More...
 
bool resizeable = true
 Resizeable window. More...
 
bool doubleBuf = true
 Double buffering. More...
 
bool noFrame = false
 No window frame (also set with full screen) More...
 
int redSize = 8
 Size of red channel in bits. More...
 
int greenSize = 8
 Size of green channel in bits. More...
 
int blueSize = 8
 Size of blue channel in bits. More...
 
int alphaSize = 8
 Size of alpha channel in bits. More...
 
int depthSize = 24
 Color depth in bits. More...
 
int stencilSize = 8
 Stencil depth in bits. More...
 
bool hardwareAccel = true
 Force hardware acceleration (video mode set will fail on lack of hw accel) More...
 

Detailed Description

General config for graphics device.

These settings are common window options set by SDL.

Member Function Documentation

void Gfx::DeviceConfig::LoadDefault ( )
inline

Loads the default values.

Member Data Documentation

Math::IntPoint Gfx::DeviceConfig::size = Math::IntPoint(800, 600)

Screen size.

int Gfx::DeviceConfig::bpp = 32

Bits per pixel.

bool Gfx::DeviceConfig::fullScreen = false

Full screen.

bool Gfx::DeviceConfig::resizeable = true

Resizeable window.

bool Gfx::DeviceConfig::doubleBuf = true

Double buffering.

bool Gfx::DeviceConfig::noFrame = false

No window frame (also set with full screen)

int Gfx::DeviceConfig::redSize = 8

Size of red channel in bits.

int Gfx::DeviceConfig::greenSize = 8

Size of green channel in bits.

int Gfx::DeviceConfig::blueSize = 8

Size of blue channel in bits.

int Gfx::DeviceConfig::alphaSize = 8

Size of alpha channel in bits.

int Gfx::DeviceConfig::depthSize = 24

Color depth in bits.

int Gfx::DeviceConfig::stencilSize = 8

Stencil depth in bits.

bool Gfx::DeviceConfig::hardwareAccel = true

Force hardware acceleration (video mode set will fail on lack of hw accel)


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