#include <surfacerenderer.h>
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 |
A renderer to draw textures as two dimensional surfaces to the current viewport
|
pure virtual |
Draw a 2D surface from the specified bitmap
Implemented in Stark::Gfx::TinyGLSurfaceRenderer.
|
pure virtual |
Draw a 2D surface from the specified bitmap with given width and height
Implemented in Stark::Gfx::TinyGLSurfaceRenderer.
|
pure virtual |
Draw a filled 2D rectangle using the specified color
Implemented in Stark::Gfx::TinyGLSurfaceRenderer.
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
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
void Stark::Gfx::SurfaceRenderer::setSnapToGrid | ( | bool | snapToGrid | ) |
Align vertex coordinates to the native pixel grid