ScummVM API documentation
Pelrock::GraphicsManager Class Reference

Public Member Functions

Common::Point showOverlay (int height, Graphics::ManagedSurface &buf)
 
void fadeToBlack (int stepSize)
 
void fadePaletteToTarget (byte *targetPalette, int stepSize)
 
void clearScreen ()
 
void drawColoredText (Graphics::ManagedSurface *screen, const Common::String &text, int x, int y, int w, byte &defaultColor, Graphics::Font *font)
 
void drawColoredTexts (Graphics::ManagedSurface *surface, const Common::StringArray &text, int x, int y, int w, int yPadding, Graphics::Font *font)
 
void copyBackgroundToBuffer ()
 
void presentFrame ()
 
void placeStickersFirstPass ()
 
void placeStickersSecondPass ()
 
void placeSticker (Sticker &sticker, byte *pixels)
 
void updatePaletteAnimations ()
 
void animateFadePalette (PaletteAnim *anim)
 
void animateRotatePalette (PaletteAnim *anim)
 
void reflectionEffect (byte *buf, int x, int y, int width, int height)
 
void calculateScalingMasks ()
 
ScaleCalculation calculateScaling (int yPos, ScalingParams scalingParams)
 
byte * scale (int scaleY, int finalWidth, int finalHeight, byte *buf)
 

Public Attributes

Common::Array< Common::Array< int > > _widthScalingTable
 
Common::Array< Common::Array< int > > _heightScalingTable
 

Member Function Documentation

◆ reflectionEffect()

void Pelrock::GraphicsManager::reflectionEffect ( byte *  buf,
int  x,
int  y,
int  width,
int  height 
)

Water reflection: mirrors buf pixels at (x,y) for water-palette pixels.

◆ calculateScaling()

ScaleCalculation Pelrock::GraphicsManager::calculateScaling ( int  yPos,
ScalingParams  scalingParams 
)

Returns the scaled width/height and scale parameters for Alfred at yPos.

◆ scale()

byte* Pelrock::GraphicsManager::scale ( int  scaleY,
int  finalWidth,
int  finalHeight,
byte *  buf 
)

Scales a source frame (kAlfredFrameWidth × kAlfredFrameHeight) to (finalWidth × finalHeight) using the pre-computed scaling tables. Caller owns the returned buffer.


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