|
|
| TinyGLRenderer (OSystem *_system) |
| |
|
void | init () override |
| |
|
void | clear () override |
| |
| void | selectTargetWindow (Window *window, bool is3D, bool scaled) override |
| |
|
Texture * | createTexture2D (const Graphics::Surface *surface) override |
| |
|
Texture * | createTexture3D (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::Surface * | getScreenshot () override |
| |
| void | flipBuffer () override |
| |
|
| Renderer (OSystem *system) |
| |
|
virtual void | initFont (const Graphics::Surface *surface) |
| |
|
virtual void | freeFont () |
| |
|
virtual Texture * | copyScreenshotToTexture () |
| |
| 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 () |
| |
|
|
static const int | kOriginalWidth = 640 |
| |
|
static const int | kOriginalHeight = 480 |
| |
|
static const int | kTopBorderHeight = 30 |
| |
|
static const int | kBottomBorderHeight = 90 |
| |
|
static const int | kBottomBorderHeightForSubsInWideScreen = 60 |
| |
|
static const int | kBottomTriggerForInventoryInWideScreen = 35 |
| |
|
static const int | kFrameHeight = 360 |
| |
|
Common::Rect | getFontCharacterRect (uint8 character) |
| |
|
Math::Matrix4 | makeProjectionMatrix (float fov) const |
| |
|
OSystem * | _system |
| |
|
Texture * | _font |
| |
|
Common::Rect | _screenViewport |
| |
|
Math::Matrix4 | _projectionMatrix |
| |
|
Math::Matrix4 | _modelViewMatrix |
| |
|
Math::Matrix4 | _mvpMatrix |
| |
|
Math::Frustum | _frustum |
| |
|
Math::AABB | _cubeFacesAABB [6] |
| |
|
static const float | cubeVertices [5 *6 *4] |
| |
◆ 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: