xbmc
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KODI::RETRO::CRPBaseRenderer Class Referenceabstract
Inheritance diagram for KODI::RETRO::CRPBaseRenderer:
Inheritance graph
[legend]
Collaboration diagram for KODI::RETRO::CRPBaseRenderer:
Collaboration graph
[legend]

Public Member Functions

 CRPBaseRenderer (const CRenderSettings &renderSettings, CRenderContext &context, std::shared_ptr< IRenderBufferPool > bufferPool)
 
IRenderBufferPoolGetBufferPool ()
 Get the buffer pool used by this renderer.
 
bool Configure (AVPixelFormat format)
 
void FrameMove ()
 
void PreRender (bool clear)
 Performs whatever necessary before rendering the frame.
 
void SetBuffer (IRenderBuffer *buffer)
 
void RenderFrame (bool clear, uint8_t alpha)
 
virtual bool Supports (RENDERFEATURE feature) const =0
 
bool IsCompatible (const CRenderVideoSettings &settings) const
 
virtual SCALINGMETHOD GetDefaultScalingMethod () const =0
 
virtual void Flush ()
 
const CRenderSettingsGetRenderSettings () const
 
void SetScalingMethod (SCALINGMETHOD method)
 
void SetStretchMode (STRETCHMODE stretchMode)
 
void SetRenderRotation (unsigned int rotationDegCCW)
 
void SetShaderPreset (const std::string &presetPath)
 
void SetPixels (const std::string &pixelPath)
 
bool IsVisible () const
 
IRenderBufferGetRenderBuffer () const
 

Protected Member Functions

virtual bool ConfigureInternal ()
 
virtual void RenderInternal (bool clear, uint8_t alpha)=0
 
virtual void FlushInternal ()
 
void Updateshaders ()
 Updates everything needed for video shaders (shader presets) Needs to be called after m_renderBuffer has been set.
 

Protected Attributes

CRenderContextm_context
 
std::shared_ptr< IRenderBufferPoolm_bufferPool
 
bool m_bConfigured = false
 
AVPixelFormat m_format = AV_PIX_FMT_NONE
 
CRenderSettings m_renderSettings
 
IRenderBufferm_renderBuffer = nullptr
 
CRect m_sourceRect
 
std::array< CPoint, 4 > m_rotatedDestCoords {}
 
std::unique_ptr< SHADER::IShaderPresetm_shaderPreset
 
bool m_shadersNeedUpdate
 
bool m_bUseShaderPreset
 

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