ScummVM API documentation
GuRenderer Class Reference

#include <display_client.h>

Public Member Functions

 GuRenderer (Buffer *buffer, Palette *palette)
 
void setDrawSize (uint32 width, uint32 height)
 
void setDrawWholeBuffer ()
 
void setBuffer (Buffer *buffer)
 
void setPalette (Palette *palette)
 
void setOffsetOnScreen (int x, int y)
 
void setOffsetInBuffer (uint32 x, uint32 y)
 
void setColorTest (bool value)
 
void setKeyColor (uint32 value)
 
void setAlphaBlending (bool value)
 
void setAlphaReverse (bool value)
 
void setFullScreen (bool value)
 
void setUseGlobalScaler (bool value)
 
void setStretch (bool active)
 
void setStretchXY (float x, float y)
 
void render ()
 

Static Public Member Functions

static void setDisplayManager (DisplayManager *dm)
 
static void cacheInvalidate (void *pointer, uint32 size)
 

Protected Member Functions

void fillVertices (Vertex *vertices)
 
void guProgramDrawBehavior ()
 
VertexguGetVertices ()
 
void guLoadTexture ()
 
void guLoadPalette ()
 
void guProgramTextureFormat ()
 
void guProgramTextureBitDepth ()
 
void guDrawVertices (Vertex *vertices)
 
uint32 convertToGuPixelFormat (PSPPixelFormat::Type format)
 
float scaleSourceToOutput (bool x, float offset)
 
float stretch (bool x, float size)
 

Protected Attributes

Point _textureLoadOffset
 
Point _offsetOnScreen
 

For rendering textures > 512 pixels


 
Point _offsetInBuffer
 

Where on screen to draw


 
bool _useGlobalScaler
 

Where in the texture to draw


 
Buffer_buffer
 

Scale to the output size on screen


 
Palette_palette
 
Dimensions _drawSize
 
bool _blending
 

Actual size to draw out of the Buffer


 
bool _alphaReverse
 
bool _colorTest
 

0 counts as full alpha


 
uint32 _keyColor
 
bool _fullScreen
 

Color to test against for color test. in 32 bits.


 
bool _stretch
 

Speeds up for fullscreen rendering


 
float _stretchX
 

Whether zooming is activated


 
float _stretchY
 

Static Protected Attributes

static DisplayManager_displayManager
 

Detailed Description

Universal rendering class for PSP Use this if you want to draw to the screen. Needs to be supplied with a Buffer and a Palette


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