tgraphmodeparameters Struct Reference

a graphical surface. More...

#include <basegfx.h>

List of all members.

Public Member Functions

 tgraphmodeparameters ()

Public Attributes

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

the number of visible pixels in y direction

Definition at line 53 of file basegfx.h.

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

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.

int tgraphmodeparameters::windowstatus

determines whether the memory is a linear (windowstatus==100) or paged. When using SDL, the memory is always linear addressable.

Definition at line 55 of file basegfx.h.

Referenced by bar(), getimage(), getpixel(), initASCGraphicSubsystem(), putimage(), putimageprt(), putinterlacedrotimage(), putpicturemix(), putpixel(), putrotspriteimage(), putrotspriteimage180(), putrotspriteimage270(), putrotspriteimage90(), putspriteimage(), putspritetexture(), puttexture(), putxlatfilter(), tviewtext::setparams(), and tdialogbox::setvirtualframebuf().

int tgraphmodeparameters::granularity

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

Definition at line 56 of file basegfx.h.

int tgraphmodeparameters::scanlinelength

the size of a line in byte (may be larger than resolutionx due to offscreen memory)

Definition at line 57 of file basegfx.h.

Referenced by bar(), getimage(), getpixel(), getpixel8(), initASCGraphicSubsystem(), putimage(), putimageprt(), putinterlacedrotimage(), putpicturemix(), putpixel(), putpixel8(), putrotspriteimage(), putrotspriteimage180(), putrotspriteimage270(), putrotspriteimage90(), putspriteimage(), putspritetexture(), puttexture(), putxlatfilter(), tviewtext::setparams(), tdialogbox::setvirtualframebuf(), and showtext().

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().

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::activegraphmode

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

Definition at line 60 of file basegfx.h.

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::byteperpix

the distance between two pixel

Definition at line 62 of file basegfx.h.

Referenced by bar(), getimage(), getpixel(), getpixel8(), initASCGraphicSubsystem(), putimage(), putimageprt(), putmask(), putpixel(), putpixel8(), putrotspriteimage(), putrotspriteimage180(), putrotspriteimage270(), putrotspriteimage90(), putspriteimage(), putxlatfilter(), tviewtext::setparams(), showtext(), and writepcx().

PointerSizedInt tgraphmodeparameters::linearaddress

the pointer to the actual memory (typecast to char* )

Definition at line 63 of file basegfx.h.

Referenced by bar(), copybuf2displaymemory(), tdialogbox::copyvirtualframebuf(), tviewtext::displaytext(), getimage(), getpixel(), getpixel8(), initASCGraphicSubsystem(), putimage(), putimageprt(), putinterlacedrotimage(), putmask(), putpicturemix(), putpixel(), putpixel8(), putrotspriteimage(), putrotspriteimage180(), putrotspriteimage270(), putrotspriteimage90(), putspriteimage(), putspritetexture(), puttexture(), putxlatfilter(), tdialogbox::setvirtualframebuf(), and showtext().

int tgraphmodeparameters::pagetoset

only used in DOS with paged graphic memory

Definition at line 64 of file basegfx.h.

char tgraphmodeparameters::redmasksize

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

Definition at line 65 of file basegfx.h.

char 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().

char tgraphmodeparameters::greenmasksize

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

Definition at line 67 of file basegfx.h.

char 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().

char tgraphmodeparameters::bluemasksize

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

Definition at line 69 of file basegfx.h.

char 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().

char tgraphmodeparameters::bitperpix

the size of a pixel(?) in bits

Definition at line 71 of file basegfx.h.

Referenced by initASCGraphicSubsystem().

char tgraphmodeparameters::memorymodel

unused

Definition at line 72 of file basegfx.h.

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().

Surface* tgraphmodeparameters::surface

Definition at line 74 of file basegfx.h.

Referenced by copy2screen(), getActiveSurface(), initASCGraphicSubsystem(), shutdownASCGraphicSubsystem(), and tvirtualdisplay::~tvirtualdisplay().


The documentation for this struct was generated from the following file:
Generated on Mon May 21 01:47:49 2012 for Advanced Strategic Command by  doxygen 1.5.1