ScummVM API documentation
Alcachofa::OpenGLRenderer Class Reference
Inheritance diagram for Alcachofa::OpenGLRenderer:
Alcachofa::OpenGLRendererBase Alcachofa::IRenderer

Public Member Functions

 OpenGLRenderer (Common::Point resolution)
 
Common::ScopedPtr< ITexture > createTexture (int32 w, int32 h, bool withMipmaps) override
 
Graphics::PixelFormat getPixelFormat () const override
 
bool requiresPoTTextures () const override
 
void end () override
 
void setOutput (Graphics::Surface &output) override
 
- Public Member Functions inherited from Alcachofa::OpenGLRendererBase
 OpenGLRendererBase (Common::Point resolution)
 
bool hasOutput () const override
 
- Public Member Functions inherited from Alcachofa::IRenderer
virtual Common::ScopedPtr< ITexture > createTexture (int32 w, int32 h, bool withMipmaps=true)=0
 
virtual Graphics::PixelFormat getPixelFormat () const =0
 
virtual bool requiresPoTTextures () const =0
 
virtual void begin ()=0
 
virtual void setTexture (ITexture *texture)=0
 
virtual void setBlendMode (BlendMode blendMode)=0
 
virtual void setLodBias (float lodBias)=0
 
virtual void setOutput (Graphics::Surface &surface)=0
 
virtual bool hasOutput () const =0
 
virtual void quad (Math::Vector2d topLeft, Math::Vector2d size, Color color=kWhite, Math::Angle rotation=Math::Angle(), Math::Vector2d texMin=Math::Vector2d(0, 0), Math::Vector2d texMax=Math::Vector2d(1, 1))=0
 
virtual void end ()=0
 

Protected Member Functions

void setViewportInner (int x, int y, int width, int height) override
 
void setBlendFunc (BlendMode blendMode)
 just the blend-func, not texenv/shader uniform
 
void checkFirstDrawCommand ()
 
- Protected Member Functions inherited from Alcachofa::OpenGLRendererBase
virtual void setViewportInner (int x, int y, int width, int height)=0
 
virtual void setMatrices (bool flipped)=0
 
void resetState ()
 
void setViewportToScreen ()
 
void setViewportToRect (int16 outputWidth, int16 outputHeight)
 
void getQuadPositions (Math::Vector2d topLeft, Math::Vector2d size, Math::Angle rotation, Math::Vector2d positions[]) const
 
void getQuadTexCoords (Math::Vector2d texMin, Math::Vector2d texMax, Math::Vector2d texCoords[]) const
 

Protected Attributes

OpenGLTexture * _currentTexture = nullptr
 
- Protected Attributes inherited from Alcachofa::OpenGLRendererBase
Common::Point _resolution
 
Common::Point _outputSize
 
Graphics::Surface * _currentOutput = nullptr
 
BlendMode _currentBlendMode = (BlendMode)-1
 
float _currentLodBias = 0.0f
 
bool _isFirstDrawCommand = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Alcachofa::IRenderer
static IRenderer * createOpenGLRenderer (Common::Point resolution)
 
static IRenderer * createOpenGLRendererClassic (Common::Point resolution)
 
static IRenderer * createOpenGLRendererShaders (Common::Point resolution)
 
static IRenderer * createTinyGLRenderer (Common::Point resolution)
 

Member Function Documentation

◆ createTexture()

Common::ScopedPtr< ITexture > Alcachofa::OpenGLRenderer::createTexture ( int32  w,
int32  h,
bool  withMipmaps 
)
overridevirtual

Implements Alcachofa::IRenderer.

◆ getPixelFormat()

Graphics::PixelFormat Alcachofa::OpenGLRenderer::getPixelFormat ( ) const
overridevirtual

Implements Alcachofa::IRenderer.

◆ requiresPoTTextures()

bool Alcachofa::OpenGLRenderer::requiresPoTTextures ( ) const
overridevirtual

Implements Alcachofa::IRenderer.

◆ end()

void Alcachofa::OpenGLRenderer::end ( )
overridevirtual

Implements Alcachofa::IRenderer.

◆ setOutput()

void Alcachofa::OpenGLRenderer::setOutput ( Graphics::Surface &  output)
overridevirtual

Implements Alcachofa::IRenderer.

◆ setViewportInner()

void Alcachofa::OpenGLRenderer::setViewportInner ( int  x,
int  y,
int  width,
int  height 
)
overrideprotectedvirtual

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