ScummVM API documentation
Titanic::CSurfaceArea Class Reference

Public Member Functions

 CSurfaceArea (CVideoSurface *surface)
 
SurfaceAreaMode setMode (SurfaceAreaMode mode)
 
void setColorFromPixel ()
 
double drawLine (const FPoint &pt1, const FPoint &pt2)
 
double drawLine (const FRect &rect)
 

Public Attributes

int _field0
 
int _width
 
int _height
 
int _pitch
 
int _bpp
 
byte * _pixelsPtr
 
FPoint _centroid
 
uint _pixel
 
byte _field24
 
byte _field25
 
byte _field26
 
byte _field27
 
uint _rgb
 
int _field2C
 
uint _colorMask
 
uint _color
 
SurfaceAreaMode _mode
 
Rect _bounds
 
Graphics::Surface_surface
 

Member Function Documentation

◆ setMode()

SurfaceAreaMode Titanic::CSurfaceArea::setMode ( SurfaceAreaMode  mode)

Sets the drawing mode, and returns the old mode

◆ setColorFromPixel()

void Titanic::CSurfaceArea::setColorFromPixel ( )

Sets the color from the current pixel

◆ drawLine() [1/2]

double Titanic::CSurfaceArea::drawLine ( const FPoint pt1,
const FPoint pt2 
)

Draws a line on the surface

◆ drawLine() [2/2]

double Titanic::CSurfaceArea::drawLine ( const FRect rect)
inline

Draws a line on the surface from the rect's top-left to bottom-right corners


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