ScummVM API documentation
Stark::Gfx::SurfaceRenderer Class Referenceabstract

#include <surfacerenderer.h>

Inheritance diagram for Stark::Gfx::SurfaceRenderer:
Stark::Gfx::TinyGLSurfaceRenderer

Public Member Functions

virtual void render (const Bitmap *bitmap, const Common::Point &dest)=0
 
virtual void render (const Bitmap *bitmap, const Common::Point &dest, uint width, uint height)=0
 
virtual void fill (const Color &color, const Common::Point &dest, uint width, uint height)=0
 
void setNoScalingOverride (bool noScalingOverride)
 
void setFadeLevel (float fadeLevel)
 
void setSnapToGrid (bool snapToGrid)
 

Protected Attributes

bool _noScalingOverride
 
float _fadeLevel
 
bool _snapToGrid
 

Detailed Description

A renderer to draw textures as two dimensional surfaces to the current viewport

Member Function Documentation

◆ render() [1/2]

virtual void Stark::Gfx::SurfaceRenderer::render ( const Bitmap bitmap,
const Common::Point dest 
)
pure virtual

Draw a 2D surface from the specified bitmap

Implemented in Stark::Gfx::TinyGLSurfaceRenderer.

◆ render() [2/2]

virtual void Stark::Gfx::SurfaceRenderer::render ( const Bitmap bitmap,
const Common::Point dest,
uint  width,
uint  height 
)
pure virtual

Draw a 2D surface from the specified bitmap with given width and height

Implemented in Stark::Gfx::TinyGLSurfaceRenderer.

◆ fill()

virtual void Stark::Gfx::SurfaceRenderer::fill ( const Color color,
const Common::Point dest,
uint  width,
uint  height 
)
pure virtual

Draw a filled 2D rectangle using the specified color

Implemented in Stark::Gfx::TinyGLSurfaceRenderer.

◆ setNoScalingOverride()

void Stark::Gfx::SurfaceRenderer::setNoScalingOverride ( bool  noScalingOverride)

When this is set to true, the texture size is expected to be in current coordinates, and is to be drawn without scaling.

This setting does not affect the destination point coordinates

◆ setFadeLevel()

void Stark::Gfx::SurfaceRenderer::setFadeLevel ( float  fadeLevel)

The fade level is added to the color value of each pixel

It is a value between -1 and 1

◆ setSnapToGrid()

void Stark::Gfx::SurfaceRenderer::setSnapToGrid ( bool  snapToGrid)

Align vertex coordinates to the native pixel grid


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