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.
void setSnapToGrid (bool snapToGrid)
 Align vertex coordinates to the native pixel grid.

Protected Attributes

bool _noScalingOverride
float _fadeLevel
bool _snapToGrid

Detailed Description

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

Definition at line 36 of file surfacerenderer.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file surfacerenderer.cpp.

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

Definition at line 34 of file 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 41 of file 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 37 of file surfacerenderer.cpp.

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

Align vertex coordinates to the native pixel grid.

Definition at line 45 of file surfacerenderer.cpp.


Member Data Documentation

Definition at line 73 of file surfacerenderer.h.

Definition at line 72 of file surfacerenderer.h.

Definition at line 74 of file surfacerenderer.h.


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


Generated on Sat Jul 20 2019 05:03:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge