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

Stark::Gfx::SurfaceRenderer Class Reference

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

#include <surfacerenderer.h>

Inheritance diagram for Stark::Gfx::SurfaceRenderer:

List of all members.

Public Member Functions

 SurfaceRenderer ()
virtual ~SurfaceRenderer ()
virtual void render (const Texture *texture, const Common::Point &dest)=0
 Draw a 2D surface from the specified texture.
virtual void render (const Texture *texture, const Common::Point &dest, uint width, uint height)=0
 Draw a 2D surface from the specified texture with given width and height.
void 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.
void setFadeLevel (float fadeLevel)
 The fade level is added to the color value of each pixel.

Protected Attributes

bool _noScalingOverride
float _fadeLevel

Detailed Description

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

Definition at line 36 of file engines/stark/gfx/surfacerenderer.h.


Constructor & Destructor Documentation

Stark::Gfx::SurfaceRenderer::SurfaceRenderer (  ) 

Definition at line 28 of file engines/stark/gfx/surfacerenderer.cpp.

Stark::Gfx::SurfaceRenderer::~SurfaceRenderer (  )  [virtual]

Definition at line 33 of file engines/stark/gfx/surfacerenderer.cpp.


Member Function Documentation

virtual void Stark::Gfx::SurfaceRenderer::render ( const Texture texture,
const Common::Point dest 
) [pure virtual]

Draw a 2D surface from the specified texture.

Implemented in Stark::Gfx::OpenGLSSurfaceRenderer.

virtual void Stark::Gfx::SurfaceRenderer::render ( const Texture texture,
const Common::Point dest,
uint  width,
uint  height 
) [pure virtual]

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

Implemented in Stark::Gfx::OpenGLSSurfaceRenderer.

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

Definition at line 40 of file engines/stark/gfx/surfacerenderer.cpp.

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

Definition at line 36 of file engines/stark/gfx/surfacerenderer.cpp.


Member Data Documentation


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


Generated on Sat Jan 12 2019 05:05:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge