ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::BaseSurface Class Reference

#include <base_surface.h>

Inheritance diagram for Wintermute::BaseSurface:
Collaboration diagram for Wintermute::BaseSurface:

List of all members.

Public Member Functions

virtual bool invalidate ()
virtual bool prepareToDraw ()
 BaseSurface (BaseGame *inGame)
 ~BaseSurface () override
virtual bool displayHalfTrans (int x, int y, Rect32 rect)
virtual bool isTransparentAt (int x, int y)
virtual bool displayTransZoom (int x, int y, Rect32 rect, float zoomX, float zoomY, uint32 alpha=0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL, bool mirrorX=false, bool mirrorY=false)=0
virtual bool displayTrans (int x, int y, Rect32 rect, uint32 alpha=0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL, bool mirrorX=false, bool mirrorY=false)=0
virtual bool displayTransOffset (int x, int y, Rect32 rect, uint32 alpha=0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL, bool mirrorX=false, bool mirrorY=false, int offsetX=0, int offsetY=0)=0
virtual bool display (int x, int y, Rect32 rect, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL, bool mirrorX=false, bool mirrorY=false)=0
virtual bool displayTransform (int x, int y, Rect32 rect, Rect32 newRect, const Graphics::TransformStruct &transform)=0
virtual bool displayZoom (int x, int y, Rect32 rect, float zoomX, float zoomY, uint32 alpha=0xFFFFFFFF, bool transparent=false, Graphics::TSpriteBlendMode blendMode=Graphics::BLEND_NORMAL, bool mirrorX=false, bool mirrorY=false)=0
virtual bool displayTiled (int x, int y, Rect32 rect, int numTimesX, int numTimesY)=0
virtual bool restore ()
virtual bool create (const Common::String &filename, bool defaultCK, byte ckRed, byte ckGreen, byte ckBlue, int lifeTime=-1, bool keepLoaded=false)=0
virtual bool create (int width, int height)
virtual bool putSurface (const Graphics::Surface &surface, bool hasAlpha=false)
virtual bool putPixel (int x, int y, byte r, byte g, byte b, int a=-1)
virtual bool getPixel (int x, int y, byte *r, byte *g, byte *b, byte *a=nullptr)
virtual bool comparePixel (int x, int y, byte r, byte g, byte b, int a=-1)
virtual bool startPixelOp ()
virtual bool endPixelOp ()
virtual bool isTransparentAtLite (int x, int y)
void setSize (int width, int height)
virtual int getWidth ()
virtual int getHeight ()
Common::String getFileNameStr ()
const char * getFileName ()

Public Attributes

uint32 _lastUsedTime
bool _valid
int32 _lifeTime
bool _pixelOpReady
int _referenceCount

Protected Attributes

bool _ckDefault
byte _ckRed
byte _ckGreen
byte _ckBlue
bool _keepLoaded
Common::String _filename
int32 _height
int32 _width

Detailed Description

Definition at line 39 of file base_surface.h.


Constructor & Destructor Documentation

Wintermute::BaseSurface::BaseSurface ( BaseGame inGame  ) 

Definition at line 36 of file base_surface.cpp.

Wintermute::BaseSurface::~BaseSurface (  )  [override]

Definition at line 56 of file base_surface.cpp.


Member Function Documentation

bool Wintermute::BaseSurface::comparePixel ( int  x,
int  y,
byte  r,
byte  g,
byte  b,
int  a = -1 
) [virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGL3D.

Definition at line 107 of file base_surface.cpp.

virtual bool Wintermute::BaseSurface::create ( const Common::String filename,
bool  defaultCK,
byte  ckRed,
byte  ckGreen,
byte  ckBlue,
int  lifeTime = -1,
bool  keepLoaded = false 
) [pure virtual]
bool Wintermute::BaseSurface::create ( int  width,
int  height 
) [virtual]
virtual bool Wintermute::BaseSurface::display ( int  x,
int  y,
Rect32  rect,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [pure virtual]
bool Wintermute::BaseSurface::displayHalfTrans ( int  x,
int  y,
Rect32  rect 
) [virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGL3D.

Definition at line 73 of file base_surface.cpp.

virtual bool Wintermute::BaseSurface::displayTiled ( int  x,
int  y,
Rect32  rect,
int  numTimesX,
int  numTimesY 
) [pure virtual]
virtual bool Wintermute::BaseSurface::displayTrans ( int  x,
int  y,
Rect32  rect,
uint32  alpha = 0xFFFFFFFF,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [pure virtual]
virtual bool Wintermute::BaseSurface::displayTransform ( int  x,
int  y,
Rect32  rect,
Rect32  newRect,
const Graphics::TransformStruct transform 
) [pure virtual]
virtual bool Wintermute::BaseSurface::displayTransOffset ( int  x,
int  y,
Rect32  rect,
uint32  alpha = 0xFFFFFFFF,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false,
int  offsetX = 0,
int  offsetY = 0 
) [pure virtual]
virtual bool Wintermute::BaseSurface::displayTransZoom ( int  x,
int  y,
Rect32  rect,
float  zoomX,
float  zoomY,
uint32  alpha = 0xFFFFFFFF,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [pure virtual]
virtual bool Wintermute::BaseSurface::displayZoom ( int  x,
int  y,
Rect32  rect,
float  zoomX,
float  zoomY,
uint32  alpha = 0xFFFFFFFF,
bool  transparent = false,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [pure virtual]
bool Wintermute::BaseSurface::endPixelOp (  )  [virtual]
const char* Wintermute::BaseSurface::getFileName (  )  [inline]

Definition at line 83 of file base_surface.h.

Common::String Wintermute::BaseSurface::getFileNameStr (  )  [inline]

Definition at line 82 of file base_surface.h.

virtual int Wintermute::BaseSurface::getHeight (  )  [inline, virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGLTexture, and Wintermute::BaseSurfaceOSystem.

Definition at line 79 of file base_surface.h.

bool Wintermute::BaseSurface::getPixel ( int  x,
int  y,
byte r,
byte g,
byte b,
byte a = nullptr 
) [virtual]
virtual int Wintermute::BaseSurface::getWidth (  )  [inline, virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGLTexture, and Wintermute::BaseSurfaceOSystem.

Definition at line 76 of file base_surface.h.

bool Wintermute::BaseSurface::invalidate (  )  [virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGL3D.

Definition at line 119 of file base_surface.cpp.

bool Wintermute::BaseSurface::isTransparentAt ( int  x,
int  y 
) [virtual]
bool Wintermute::BaseSurface::isTransparentAtLite ( int  x,
int  y 
) [virtual]
bool Wintermute::BaseSurface::prepareToDraw (  )  [virtual]

Definition at line 126 of file base_surface.cpp.

bool Wintermute::BaseSurface::putPixel ( int  x,
int  y,
byte  r,
byte  g,
byte  b,
int  a = -1 
) [virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGL3D.

Definition at line 101 of file base_surface.cpp.

virtual bool Wintermute::BaseSurface::putSurface ( const Graphics::Surface surface,
bool  hasAlpha = false 
) [inline, virtual]
bool Wintermute::BaseSurface::restore (  )  [virtual]

Reimplemented in Wintermute::BaseSurfaceOpenGL3D.

Definition at line 63 of file base_surface.cpp.

void Wintermute::BaseSurface::setSize ( int  width,
int  height 
)

Definition at line 139 of file base_surface.cpp.

bool Wintermute::BaseSurface::startPixelOp (  )  [virtual]

Member Data Documentation

Definition at line 90 of file base_surface.h.

Definition at line 87 of file base_surface.h.

Definition at line 89 of file base_surface.h.

Definition at line 88 of file base_surface.h.

Definition at line 93 of file base_surface.h.

Definition at line 94 of file base_surface.h.

Definition at line 92 of file base_surface.h.

Definition at line 47 of file base_surface.h.

Definition at line 44 of file base_surface.h.

Definition at line 95 of file base_surface.h.


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


Generated on Sat Sep 26 2020 05:04:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge