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

Public Member Functions

 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

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

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

◆ hasOutput()

bool Alcachofa::OpenGLRendererBase::hasOutput ( ) const
overridevirtual

Implements Alcachofa::IRenderer.


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