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

Stark::Gfx::OpenGLSSurfaceRenderer Class Reference

An programmable pipeline OpenGL surface renderer. More...

#include <openglssurface.h>

Inheritance diagram for Stark::Gfx::OpenGLSSurfaceRenderer:
Collaboration diagram for Stark::Gfx::OpenGLSSurfaceRenderer:

List of all members.

Public Member Functions

 OpenGLSSurfaceRenderer (OpenGLSDriver *gfx)
virtual ~OpenGLSSurfaceRenderer ()
void render (const Texture *texture, const Common::Point &dest) override
 Draw a 2D surface from the specified texture.
void render (const Texture *texture, const Common::Point &dest, uint width, uint height) override
 Draw a 2D surface from the specified texture with given width and height.

Private Member Functions

Math::Vector2d normalizeOriginalCoordinates (int x, int y) const
Math::Vector2d normalizeCurrentCoordinates (int x, int y) const

Private Attributes

OpenGLSDriver * _gfx
OpenGL::Shader_shader

Detailed Description

An programmable pipeline OpenGL surface renderer.

Definition at line 43 of file openglssurface.h.


Constructor & Destructor Documentation

Stark::Gfx::OpenGLSSurfaceRenderer::OpenGLSSurfaceRenderer ( OpenGLSDriver *  gfx  ) 

Definition at line 33 of file openglssurface.cpp.

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

Definition at line 39 of file openglssurface.cpp.


Member Function Documentation

Math::Vector2d Stark::Gfx::OpenGLSSurfaceRenderer::normalizeCurrentCoordinates ( int  x,
int  y 
) const [private]

Definition at line 76 of file openglssurface.cpp.

Math::Vector2d Stark::Gfx::OpenGLSSurfaceRenderer::normalizeOriginalCoordinates ( int  x,
int  y 
) const [private]

Definition at line 71 of file openglssurface.cpp.

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

Draw a 2D surface from the specified texture.

Implements Stark::Gfx::SurfaceRenderer.

Definition at line 43 of file openglssurface.cpp.

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

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

Implements Stark::Gfx::SurfaceRenderer.

Definition at line 47 of file openglssurface.cpp.


Member Data Documentation

OpenGLSDriver* Stark::Gfx::OpenGLSSurfaceRenderer::_gfx [private]

Definition at line 56 of file openglssurface.h.


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


Generated on Sat Jul 13 2019 05:04:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge