ScummVM API documentation
Myst3::TinyGLRenderer Class Reference
Inheritance diagram for Myst3::TinyGLRenderer:
Myst3::Renderer

Public Member Functions

 TinyGLRenderer (OSystem *_system)
 
void init () override
 
void clear () override
 
void selectTargetWindow (Window *window, bool is3D, bool scaled) override
 
TexturecreateTexture2D (const Graphics::Surface *surface) override
 
TexturecreateTexture3D (const Graphics::Surface *surface) override
 
void drawRect2D (const Common::Rect &rect, uint8 a, uint8 r, uint8 g, uint8 b) 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
 
void drawCube (Texture **textures) override
 
void draw2DText (const Common::String &text, const Common::Point &position) override
 
Graphics::SurfacegetScreenshot () override
 
void flipBuffer () override
 
- Public Member Functions inherited from Myst3::Renderer
 Renderer (OSystem *system)
 
virtual void initFont (const Graphics::Surface *surface)
 
virtual void freeFont ()
 
virtual TexturecopyScreenshotToTexture ()
 
void renderDrawable (Drawable *drawable, Window *window)
 
void renderDrawableOverlay (Drawable *drawable, Window *window)
 
void renderWindow (Window *window)
 
void renderWindowOverlay (Window *window)
 
Common::Rect viewport () const
 
void setupCameraPerspective (float pitch, float heading, float fov)
 
bool isCubeFaceVisible (uint face)
 
Math::Matrix4 getMvpMatrix () const
 
void flipVertical (Graphics::Surface *s)
 
void computeScreenViewport ()
 

Additional Inherited Members

- Static Public Attributes inherited from Myst3::Renderer
static const int kOriginalWidth = 640
 
static const int kOriginalHeight = 480
 
static const int kTopBorderHeight = 30
 
static const int kBottomBorderHeight = 90
 
static const int kFrameHeight = 360
 
- Protected Member Functions inherited from Myst3::Renderer
Common::Rect getFontCharacterRect (uint8 character)
 
Math::Matrix4 makeProjectionMatrix (float fov) const
 
- Protected Attributes inherited from Myst3::Renderer
OSystem_system
 
Texture_font
 
Common::Rect _screenViewport
 
Math::Matrix4 _projectionMatrix
 
Math::Matrix4 _modelViewMatrix
 
Math::Matrix4 _mvpMatrix
 
Math::Frustum _frustum
 
Math::AABB _cubeFacesAABB [6]
 
- Static Protected Attributes inherited from Myst3::Renderer
static const float cubeVertices [5 *6 *4]
 

Member Function Documentation

◆ selectTargetWindow()

void Myst3::TinyGLRenderer::selectTargetWindow ( Window window,
bool  is3D,
bool  scaled 
)
overridevirtual

Select the window where to render

This also sets the viewport

Implements Myst3::Renderer.

◆ flipBuffer()

void Myst3::TinyGLRenderer::flipBuffer ( )
overridevirtual

Swap the buffers, making the drawn screen visible

Reimplemented from Myst3::Renderer.


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