ScummVM API documentation
Playground3d::Renderer Class Referenceabstract
Inheritance diagram for Playground3d::Renderer:
Playground3d::OpenGLRenderer Playground3d::ShaderRenderer Playground3d::TinyGLRenderer

Public Member Functions

 Renderer (OSystem *system)
 
virtual void init ()=0
 
virtual void deinit ()=0
 
virtual void clear (const Math::Vector4d &clearColor)=0
 
virtual void flipBuffer ()
 
Common::Rect viewport () const
 
void setupCameraPerspective (float pitch, float heading, float fov)
 
void computeScreenViewport ()
 
virtual void setupViewport (int x, int y, int width, int height)=0
 
virtual void loadTextureRGBA (Graphics::Surface *texture)=0
 
virtual void loadTextureRGB (Graphics::Surface *texture)=0
 
virtual void loadTextureRGB565 (Graphics::Surface *texture)=0
 
virtual void loadTextureRGBA5551 (Graphics::Surface *texture)=0
 
virtual void loadTextureRGBA4444 (Graphics::Surface *texture)=0
 
virtual void drawCube (const Math::Vector3d &pos, const Math::Vector3d &roll)=0
 
virtual void drawPolyOffsetTest (const Math::Vector3d &pos, const Math::Vector3d &roll)=0
 
virtual void dimRegionInOut (float fade)=0
 
virtual void drawInViewport ()=0
 
virtual void drawRgbaTexture ()=0
 
virtual void enableFog (const Math::Vector4d &fogColor)=0
 

Static Public Attributes

static const int kOriginalWidth = 640
 
static const int kOriginalHeight = 480
 

Protected Member Functions

Math::Matrix4 makeProjectionMatrix (float fov, float nearClip, float farClip) const
 

Protected Attributes

OSystem_system
 
Common::Rect _screenViewport
 
Math::Matrix4 _projectionMatrix
 
Math::Matrix4 _modelViewMatrix
 
Math::Matrix4 _mvpMatrix
 
Graphics::Surface_texture
 

Static Protected Attributes

static const float cubeVertices [11 *6 *4]
 

Member Function Documentation

◆ flipBuffer()

virtual void Playground3d::Renderer::flipBuffer ( )
inlinevirtual

Swap the buffers, making the drawn screen visible

Reimplemented in Playground3d::TinyGLRenderer.


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