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

#include <gfx.h>

Inheritance diagram for Myst3::BaseRenderer:
Collaboration diagram for Myst3::BaseRenderer:

List of all members.

Public Member Functions

 BaseRenderer (OSystem *system)
virtual ~BaseRenderer ()
virtual void initFont (const Graphics::Surface *surface) override
virtual void freeFont () override
Common::Rect viewport () const override
Common::Rect frameViewport () const override
Common::Point frameCenter () const override
Math::Matrix4 makeProjectionMatrix (float fov) const override
virtual void setupCameraPerspective (float pitch, float heading, float fov) override
void screenPosToDirection (const Common::Point screen, float &pitch, float &heading) override
bool isCubeFaceVisible (uint face) override
void flipVertical (Graphics::Surface *s) override

Protected Member Functions

Common::Rect getFontCharacterRect (uint8 character)
void computeScreenViewport ()

Protected Attributes

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

static const float cubeVertices [5 *6 *4]

Detailed Description

Definition at line 105 of file gfx.h.


Constructor & Destructor Documentation

Myst3::BaseRenderer::BaseRenderer ( OSystem system  ) 

Definition at line 73 of file engines/myst3/gfx.cpp.

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

Definition at line 84 of file engines/myst3/gfx.cpp.


Member Function Documentation

void Myst3::BaseRenderer::computeScreenViewport (  )  [protected]

Definition at line 130 of file engines/myst3/gfx.cpp.

void Myst3::BaseRenderer::flipVertical ( Graphics::Surface s  )  [override, virtual]

Implements Myst3::Renderer.

Definition at line 207 of file engines/myst3/gfx.cpp.

Common::Point Myst3::BaseRenderer::frameCenter (  )  const [override, virtual]

Implements Myst3::Renderer.

Definition at line 149 of file engines/myst3/gfx.cpp.

Common::Rect Myst3::BaseRenderer::frameViewport (  )  const [override, virtual]

Implements Myst3::Renderer.

Definition at line 121 of file engines/myst3/gfx.cpp.

void Myst3::BaseRenderer::freeFont (  )  [override, virtual]

Implements Myst3::Renderer.

Definition at line 91 of file engines/myst3/gfx.cpp.

Common::Rect Myst3::BaseRenderer::getFontCharacterRect ( uint8  character  )  [protected]

Definition at line 98 of file engines/myst3/gfx.cpp.

void Myst3::BaseRenderer::initFont ( const Graphics::Surface surface  )  [override, virtual]

Implements Myst3::Renderer.

Definition at line 87 of file engines/myst3/gfx.cpp.

bool Myst3::BaseRenderer::isCubeFaceVisible ( uint  face  )  [override, virtual]

Implements Myst3::Renderer.

Definition at line 201 of file engines/myst3/gfx.cpp.

Math::Matrix4 Myst3::BaseRenderer::makeProjectionMatrix ( float  fov  )  const [override, virtual]

Implements Myst3::Renderer.

Definition at line 155 of file engines/myst3/gfx.cpp.

void Myst3::BaseRenderer::screenPosToDirection ( const Common::Point  screen,
float &  pitch,
float &  heading 
) [override, virtual]

Implements Myst3::Renderer.

Definition at line 183 of file engines/myst3/gfx.cpp.

void Myst3::BaseRenderer::setupCameraPerspective ( float  pitch,
float  heading,
float  fov 
) [override, virtual]

Implements Myst3::Renderer.

Reimplemented in Myst3::OpenGLRenderer, Myst3::ShaderRenderer, and Myst3::TinyGLRenderer.

Definition at line 167 of file engines/myst3/gfx.cpp.

Common::Rect Myst3::BaseRenderer::viewport (  )  const [override, virtual]

Implements Myst3::Renderer.

Definition at line 117 of file engines/myst3/gfx.cpp.


Member Data Documentation

Definition at line 138 of file gfx.h.

Definition at line 127 of file gfx.h.

Definition at line 135 of file gfx.h.

Definition at line 132 of file gfx.h.

Definition at line 133 of file gfx.h.

Definition at line 131 of file gfx.h.

Definition at line 129 of file gfx.h.

Definition at line 126 of file gfx.h.

const float Myst3::BaseRenderer::cubeVertices [static, protected]
Initial value:
 {
    
    0.0f, 1.0f, -320.0f, -320.0f, -320.0f,
    1.0f, 1.0f,  320.0f, -320.0f, -320.0f,
    0.0f, 0.0f, -320.0f,  320.0f, -320.0f,
    1.0f, 0.0f,  320.0f,  320.0f, -320.0f,
    0.0f, 1.0f,  320.0f, -320.0f, -320.0f,
    1.0f, 1.0f, -320.0f, -320.0f, -320.0f,
    0.0f, 0.0f,  320.0f, -320.0f,  320.0f,
    1.0f, 0.0f, -320.0f, -320.0f,  320.0f,
    0.0f, 1.0f,  320.0f, -320.0f,  320.0f,
    1.0f, 1.0f, -320.0f, -320.0f,  320.0f,
    0.0f, 0.0f,  320.0f,  320.0f,  320.0f,
    1.0f, 0.0f, -320.0f,  320.0f,  320.0f,
    0.0f, 1.0f,  320.0f, -320.0f, -320.0f,
    1.0f, 1.0f,  320.0f, -320.0f,  320.0f,
    0.0f, 0.0f,  320.0f,  320.0f, -320.0f,
    1.0f, 0.0f,  320.0f,  320.0f,  320.0f,
    0.0f, 1.0f, -320.0f, -320.0f,  320.0f,
    1.0f, 1.0f, -320.0f, -320.0f, -320.0f,
    0.0f, 0.0f, -320.0f,  320.0f,  320.0f,
    1.0f, 0.0f, -320.0f,  320.0f, -320.0f,
    0.0f, 1.0f,  320.0f,  320.0f,  320.0f,
    1.0f, 1.0f, -320.0f,  320.0f,  320.0f,
    0.0f, 0.0f,  320.0f,  320.0f, -320.0f,
    1.0f, 0.0f, -320.0f,  320.0f, -320.0f
}

Definition at line 137 of file gfx.h.


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


Generated on Sat Jul 9 2016 05:01:23 for ResidualVM by doxygen 1.7.1
curved edge   curved edge