Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
tgraphmodeparameters Struct Reference

a graphical surface. More...

#include <basegfx.h>

Public Member Functions

 tgraphmodeparameters ()
 

Public Attributes

int resolutionx
 the number of visible pixels in x direction More...
 
int resolutiony
 the number of visible pixels in y direction More...
 
int actsetpage
 only used in DOS where it may be necessary to access the graphic memory in 64 kB pages More...
 
int windowstatus
 determines whether the memory is a linear (windowstatus==100) or paged. When using SDL, the memory is always linear addressable. More...
 
int granularity
 the offset in graphics memory between two pages. Can be ignored nowadays More...
 
int scanlinelength
 the size of a line in byte (may be larger than resolutionx due to offscreen memory) More...
 
int scanlinenumber
 the number of lines (may be larger than resolutiony due to offscreen memory) More...
 
int bytesperscanline
 the size of a line in byte More...
 
int activegraphmode
 the number of the active graphic mode. Can be ignored nowadays More...
 
int videomemory
 the amount of memory in the video card. Not used any more. More...
 
int byteperpix
 the distance between two pixel More...
 
PointerSizedInt linearaddress
 the pointer to the actual memory (typecast to char* ) More...
 
int pagetoset
 only used in DOS with paged graphic memory More...
 
Uint8 redmasksize
 RGB only: the number of bits in the red component. More...
 
Uint8 redfieldposition
 RGB only: the position of the first red bit relative to the start of the pixel. More...
 
Uint8 greenmasksize
 RGB only: the number of bits in the green component. More...
 
Uint8 greenfieldposition
 RGB only: the position of the first green bit relative to the start of the pixel. More...
 
Uint8 bluemasksize
 RGB only: the number of bits in the blue component. More...
 
Uint8 bluefieldposition
 RGB only: the position of the first blue bit relative to the start of the pixel. More...
 
Uint8 bitperpix
 the size of a pixel(?) in bits More...
 
Uint8 memorymodel
 unused More...
 
int directscreenaccess
 if 0 no call to an update function (which copies the buffer to the screen) is performed More...
 
Surfacesurface
 

Detailed Description

a graphical surface.

Definition at line 51 of file basegfx.h.

Constructor & Destructor Documentation

tgraphmodeparameters::tgraphmodeparameters ( )
inline

Definition at line 75 of file basegfx.h.

Member Data Documentation

int tgraphmodeparameters::activegraphmode

the number of the active graphic mode. Can be ignored nowadays

Definition at line 60 of file basegfx.h.

int tgraphmodeparameters::actsetpage

only used in DOS where it may be necessary to access the graphic memory in 64 kB pages

Definition at line 54 of file basegfx.h.

Uint8 tgraphmodeparameters::bitperpix

the size of a pixel(?) in bits

Definition at line 71 of file basegfx.h.

Referenced by initASCGraphicSubsystem().

Uint8 tgraphmodeparameters::bluefieldposition

RGB only: the position of the first blue bit relative to the start of the pixel.

Definition at line 70 of file basegfx.h.

Referenced by getpixel(), and putpixel().

Uint8 tgraphmodeparameters::bluemasksize

RGB only: the number of bits in the blue component.

Definition at line 69 of file basegfx.h.

int tgraphmodeparameters::byteperpix
int tgraphmodeparameters::bytesperscanline

the size of a line in byte

Definition at line 59 of file basegfx.h.

Referenced by tvirtualscreenbuf::init(), initASCGraphicSubsystem(), putmask(), and tviewtext::setparams().

int tgraphmodeparameters::directscreenaccess

if 0 no call to an update function (which copies the buffer to the screen) is performed

Definition at line 73 of file basegfx.h.

Referenced by collategraphicoperations::collategraphicoperations(), copySurface2screen(), initASCGraphicSubsystem(), collategraphicoperations::off(), collategraphicoperations::on(), and collategraphicoperations::~collategraphicoperations().

int tgraphmodeparameters::granularity

the offset in graphics memory between two pages. Can be ignored nowadays

Definition at line 56 of file basegfx.h.

Uint8 tgraphmodeparameters::greenfieldposition

RGB only: the position of the first green bit relative to the start of the pixel.

Definition at line 68 of file basegfx.h.

Referenced by getpixel(), and putpixel().

Uint8 tgraphmodeparameters::greenmasksize

RGB only: the number of bits in the green component.

Definition at line 67 of file basegfx.h.

PointerSizedInt tgraphmodeparameters::linearaddress
Uint8 tgraphmodeparameters::memorymodel

unused

Definition at line 72 of file basegfx.h.

int tgraphmodeparameters::pagetoset

only used in DOS with paged graphic memory

Definition at line 64 of file basegfx.h.

Uint8 tgraphmodeparameters::redfieldposition

RGB only: the position of the first red bit relative to the start of the pixel.

Definition at line 66 of file basegfx.h.

Referenced by getpixel(), and putpixel().

Uint8 tgraphmodeparameters::redmasksize

RGB only: the number of bits in the red component.

Definition at line 65 of file basegfx.h.

int tgraphmodeparameters::resolutionx

the number of visible pixels in x direction

Definition at line 52 of file basegfx.h.

Referenced by tdialogbox::buildgraphics(), infomessage(), tdisplaymessage::init(), initASCGraphicSubsystem(), tdialogbox::run(), and tviewtext::setparams().

int tgraphmodeparameters::resolutiony
int tgraphmodeparameters::scanlinelength
int tgraphmodeparameters::scanlinenumber

the number of lines (may be larger than resolutiony due to offscreen memory)

Definition at line 58 of file basegfx.h.

Referenced by initASCGraphicSubsystem(), and tviewtext::setparams().

Surface* tgraphmodeparameters::surface
int tgraphmodeparameters::videomemory

the amount of memory in the video card. Not used any more.

Definition at line 61 of file basegfx.h.

int tgraphmodeparameters::windowstatus

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