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

Myst3::TinyGLRenderer Class Reference

#include <gfx_tinygl.h>

Inheritance diagram for Myst3::TinyGLRenderer:
Collaboration diagram for Myst3::TinyGLRenderer:

List of all members.

Public Member Functions

 TinyGLRenderer (OSystem *_system)
virtual ~TinyGLRenderer ()
virtual void init () override
virtual void clear () override
virtual void selectTargetWindow (Window *window, bool is3D, bool scaled) override
 Select the window where to render.
TexturecreateTexture (const Graphics::Surface *surface) override
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
virtual void flipBuffer () override
 Swap the buffers, making the drawn screen visible.

Private Member Functions

void drawFace (uint face, Texture *texture)

Private Attributes

TinyGL::FrameBuffer_fb

Detailed Description

Definition at line 35 of file myst3/gfx_tinygl.h.


Constructor & Destructor Documentation

Myst3::TinyGLRenderer::TinyGLRenderer ( OSystem _system  ) 

Definition at line 50 of file myst3/gfx_tinygl.cpp.

Myst3::TinyGLRenderer::~TinyGLRenderer (  )  [virtual]

Definition at line 55 of file myst3/gfx_tinygl.cpp.


Member Function Documentation

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

Implements Myst3::Renderer.

Definition at line 88 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 58 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 201 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 250 of file myst3/gfx_tinygl.cpp.

void Myst3::TinyGLRenderer::drawFace ( uint  face,
Texture texture 
) [private]

Definition at line 238 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 145 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 167 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 261 of file myst3/gfx_tinygl.cpp.

void Myst3::TinyGLRenderer::flipBuffer (  )  [override, virtual]

Swap the buffers, making the drawn screen visible.

Reimplemented from Myst3::Renderer.

Definition at line 298 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 62 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 290 of file myst3/gfx_tinygl.cpp.

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

Implements Myst3::Renderer.

Definition at line 67 of file myst3/gfx_tinygl.cpp.

void Myst3::TinyGLRenderer::selectTargetWindow ( Window window,
bool  is3D,
bool  scaled 
) [override, virtual]

Select the window where to render.

This also sets the viewport

Implements Myst3::Renderer.

Definition at line 93 of file myst3/gfx_tinygl.cpp.


Member Data Documentation

Definition at line 64 of file myst3/gfx_tinygl.h.


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


Generated on Sat Mar 23 2019 05:08:34 for ResidualVM by doxygen 1.7.1
curved edge   curved edge