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

OpenGL::FixedSurfaceRenderer Class Reference

#include <surfacerenderer.h>

Inheritance diagram for OpenGL::FixedSurfaceRenderer:
Collaboration diagram for OpenGL::FixedSurfaceRenderer:

List of all members.

Public Member Functions

virtual ~FixedSurfaceRenderer ()
void prepareState () override
 Push the current OpenGL state, and set up the adequate state for calling the render method.
void render (const Texture *tex, const Math::Rect2d &dest) override
 Draw a 2D surface from the specified texture.
void restorePreviousState () override
 Pop the OpenGL state to restore it as it was before calling the prepareState method.

Detailed Description

Definition at line 82 of file surfacerenderer.h.


Constructor & Destructor Documentation

virtual OpenGL::FixedSurfaceRenderer::~FixedSurfaceRenderer (  )  [virtual]

Member Function Documentation

void OpenGL::FixedSurfaceRenderer::prepareState (  )  [override, virtual]

Push the current OpenGL state, and set up the adequate state for calling the render method.

Implements OpenGL::SurfaceRenderer.

void OpenGL::FixedSurfaceRenderer::render ( const Texture tex,
const Math::Rect2d dest 
) [override, virtual]

Draw a 2D surface from the specified texture.

The destination rectangle must be specified in the following coordinates system: x: left [0.0, 1.0] right y: top [0.0, 1.0] bottom

Implements OpenGL::SurfaceRenderer.

void OpenGL::FixedSurfaceRenderer::restorePreviousState (  )  [override, virtual]

Pop the OpenGL state to restore it as it was before calling the prepareState method.

Implements OpenGL::SurfaceRenderer.


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


Generated on Sat Nov 16 2019 05:03:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge