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< ITexturecreateTexture (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 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 IRenderercreateOpenGLRenderer (Common::Point resolution)
 
static IRenderercreateOpenGLRendererClassic (Common::Point resolution)
 
static IRenderercreateOpenGLRendererShaders (Common::Point resolution)
 
static IRenderercreateTinyGLRenderer (Common::Point resolution)
 

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