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

Myst3::ShaderRenderer Class Reference

#include <gfx_opengl_shaders.h>

Inheritance diagram for Myst3::ShaderRenderer:
Collaboration diagram for Myst3::ShaderRenderer:

List of all members.

Public Member Functions

 ShaderRenderer (OSystem *_system)
virtual ~ShaderRenderer ()
virtual void init () override
virtual void clear () override
virtual void selectTargetWindow (Window *window, bool is3D, bool scaled) override
 Select the window where to render.
virtual TexturecreateTexture (const Graphics::Surface *surface) override
virtual void freeTexture (Texture *texture) override
virtual void drawRect2D (const Common::Rect &rect, uint32 color) override
virtual void drawTexturedRect2D (const Common::Rect &screenRect, const Common::Rect &textureRect, Texture *texture, float transparency=-1.0, bool additiveBlending=false) override
virtual void drawTexturedRect3D (const Math::Vector3d &topLeft, const Math::Vector3d &bottomLeft, const Math::Vector3d &topRight, const Math::Vector3d &bottomRight, Texture *texture) override
virtual void drawCube (Texture **textures) override
virtual void draw2DText (const Common::String &text, const Common::Point &position) override
virtual Graphics::SurfacegetScreenshot () override

Private Member Functions

void setupQuadEBO ()
Math::Vector2d scaled (float x, float y) const

Private Attributes

OpenGL::Shader_boxShader
OpenGL::Shader_cubeShader
OpenGL::Shader_rect3dShader
OpenGL::Shader_textShader
GLuint _boxVBO
GLuint _cubeVBO
GLuint _rect3dVBO
GLuint _textVBO
GLuint _quadEBO
Common::Rect _currentViewport
Common::String _prevText
Common::Point _prevTextPosition

Detailed Description

Definition at line 35 of file gfx_opengl_shaders.h.


Constructor & Destructor Documentation

Myst3::ShaderRenderer::ShaderRenderer ( OSystem _system  ) 
virtual Myst3::ShaderRenderer::~ShaderRenderer (  )  [virtual]

Member Function Documentation

virtual void Myst3::ShaderRenderer::clear (  )  [override, virtual]

Implements Myst3::Renderer.

virtual Texture* Myst3::ShaderRenderer::createTexture ( const Graphics::Surface surface  )  [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::draw2DText ( const Common::String text,
const Common::Point position 
) [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::drawCube ( Texture **  textures  )  [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::drawRect2D ( const Common::Rect rect,
uint32  color 
) [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::drawTexturedRect2D ( const Common::Rect screenRect,
const Common::Rect textureRect,
Texture texture,
float  transparency = -1.0,
bool  additiveBlending = false 
) [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::drawTexturedRect3D ( const Math::Vector3d topLeft,
const Math::Vector3d bottomLeft,
const Math::Vector3d topRight,
const Math::Vector3d bottomRight,
Texture texture 
) [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::freeTexture ( Texture texture  )  [override, virtual]

Implements Myst3::Renderer.

virtual Graphics::Surface* Myst3::ShaderRenderer::getScreenshot (  )  [override, virtual]

Implements Myst3::Renderer.

virtual void Myst3::ShaderRenderer::init (  )  [override, virtual]

Implements Myst3::Renderer.

Math::Vector2d Myst3::ShaderRenderer::scaled ( float  x,
float  y 
) const [private]
virtual void Myst3::ShaderRenderer::selectTargetWindow ( Window window,
bool  is3D,
bool  scaled 
) [override, virtual]

Select the window where to render.

This also sets the viewport

Implements Myst3::Renderer.

void Myst3::ShaderRenderer::setupQuadEBO (  )  [private]

Member Data Documentation

Definition at line 69 of file gfx_opengl_shaders.h.

Definition at line 70 of file gfx_opengl_shaders.h.

Definition at line 73 of file gfx_opengl_shaders.h.

Definition at line 71 of file gfx_opengl_shaders.h.

Definition at line 72 of file gfx_opengl_shaders.h.


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


Generated on Sat Sep 14 2019 05:04:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge