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

Wintermute::BaseSurfaceOpenGLTexture Class Reference

#include <base_surface_opengl_texture.h>

Inheritance diagram for Wintermute::BaseSurfaceOpenGLTexture:
Collaboration diagram for Wintermute::BaseSurfaceOpenGLTexture:

List of all members.

Public Member Functions

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

Private Member Functions

bool finishLoad ()
bool drawSprite (int x, int y, Rect32 *rect, Rect32 *newRect, Graphics::TransformStruct transformStruct)
void genAlphaMask (Graphics::Surface *surface)
uint32 getPixelAt (Graphics::Surface *surface, int x, int y)

Private Attributes

Graphics::Surface_surface
bool _loaded
uint32 _rotation
Graphics::AlphaType _alphaType
void * _lockPixels
int _lockPitch
byte_alphaMask

Detailed Description

Definition at line 40 of file base_surface_opengl_texture.h.


Constructor & Destructor Documentation

Wintermute::BaseSurfaceOpenGLTexture::BaseSurfaceOpenGLTexture ( BaseGame inGame  ) 

Definition at line 46 of file base_surface_opengl_texture.cpp.

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

Definition at line 57 of file base_surface_opengl_texture.cpp.


Member Function Documentation

bool Wintermute::BaseSurfaceOpenGLTexture::create ( const Common::String filename,
bool  defaultCK,
byte  ckRed,
byte  ckGreen,
byte  ckBlue,
int  lifeTime = -1,
bool  keepLoaded = false 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 106 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::create ( int  width,
int  height 
) [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 297 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::display ( int  x,
int  y,
Rect32  rect,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 350 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayTiled ( int  x,
int  y,
Rect32  rect,
int  numTimesX,
int  numTimesY 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 400 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayTrans ( int  x,
int  y,
Rect32  rect,
uint32  alpha = Graphics::kDefaultRgbaMod,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 357 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayTransform ( int  x,
int  y,
Rect32  rect,
Rect32  newRect,
const Graphics::TransformStruct transform 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 389 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayTransOffset ( int  x,
int  y,
Rect32  rect,
uint32  alpha = Graphics::kDefaultRgbaMod,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false,
int  offsetX = 0,
int  offsetY = 0 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 363 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayTransZoom ( int  x,
int  y,
Rect32  rect,
float  zoomX,
float  zoomY,
uint32  alpha = Graphics::kDefaultRgbaMod,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 369 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::displayZoom ( int  x,
int  y,
Rect32  rect,
float  zoomX,
float  zoomY,
uint32  alpha = Graphics::kDefaultRgbaMod,
bool  transparent = false,
Graphics::TSpriteBlendMode  blendMode = Graphics::BLEND_NORMAL,
bool  mirrorX = false,
bool  mirrorY = false 
) [override, virtual]

Implements Wintermute::BaseSurface.

Definition at line 376 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::drawSprite ( int  x,
int  y,
Rect32 rect,
Rect32 newRect,
Graphics::TransformStruct  transformStruct 
) [private]

Definition at line 408 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::endPixelOp (  )  [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 343 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::finishLoad (  )  [private]

Definition at line 134 of file base_surface_opengl_texture.cpp.

void Wintermute::BaseSurfaceOpenGLTexture::genAlphaMask ( Graphics::Surface surface  )  [private]

Definition at line 215 of file base_surface_opengl_texture.cpp.

Graphics::AlphaType Wintermute::BaseSurfaceOpenGLTexture::getAlphaType (  )  const [inline]

Definition at line 96 of file base_surface_opengl_texture.h.

int Wintermute::BaseSurfaceOpenGLTexture::getHeight (  )  [inline, override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 75 of file base_surface_opengl_texture.h.

bool Wintermute::BaseSurfaceOpenGLTexture::getPixel ( int  x,
int  y,
byte r,
byte g,
byte b,
byte a 
) [inline, override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 84 of file base_surface_opengl_texture.h.

uint32 Wintermute::BaseSurfaceOpenGLTexture::getPixelAt ( Graphics::Surface surface,
int  x,
int  y 
) [private]

Definition at line 262 of file base_surface_opengl_texture.cpp.

int Wintermute::BaseSurfaceOpenGLTexture::getWidth (  )  [inline, override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 66 of file base_surface_opengl_texture.h.

bool Wintermute::BaseSurfaceOpenGLTexture::isTransparentAt ( int  x,
int  y 
) [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 309 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::isTransparentAtLite ( int  x,
int  y 
) [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 314 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::putSurface ( const Graphics::Surface surface,
bool  hasAlpha = false 
) [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 464 of file base_surface_opengl_texture.cpp.

bool Wintermute::BaseSurfaceOpenGLTexture::startPixelOp (  )  [override, virtual]

Reimplemented from Wintermute::BaseSurface.

Definition at line 334 of file base_surface_opengl_texture.cpp.


Member Data Documentation


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