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

Public Member Functions

 CRPRendererOpenGLES (const CRenderSettings &renderSettings, CRenderContext &context, std::shared_ptr< IRenderBufferPool > bufferPool)
 
bool Supports (RENDERFEATURE feature) const override
 
SCALINGMETHOD GetDefaultScalingMethod () const override
 
- Public Member Functions inherited from KODI::RETRO::CRPBaseRenderer
 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)
 
bool IsCompatible (const CRenderVideoSettings &settings) const
 
virtual void Flush ()
 
const CRenderSettingsGetRenderSettings () const
 
void SetScalingMethod (SCALINGMETHOD method)
 
void SetStretchMode (STRETCHMODE stretchMode)
 
void SetRenderRotation (unsigned int rotationDegCCW)
 
void SetPixels (const std::string &pixelPath)
 
bool IsVisible () const
 
IRenderBufferGetRenderBuffer () const
 

Static Public Member Functions

static bool SupportsScalingMethod (SCALINGMETHOD method)
 

Protected Member Functions

void RenderInternal (bool clear, uint8_t alpha) override
 
void FlushInternal () override
 
void ClearBackBuffer ()
 Set the entire backbuffer to black.
 
void DrawBlackBars ()
 Draw black bars around the video quad. More...
 
virtual void Render (uint8_t alpha)
 
- Protected Member Functions inherited from KODI::RETRO::CRPBaseRenderer
virtual bool ConfigureInternal ()
 

Protected Attributes

GLuint m_mainIndexVBO
 
GLuint m_mainVertexVBO
 
GLuint m_blackbarsVertexVBO
 
GLenum m_textureTarget = GL_TEXTURE_2D
 
float m_clearColour = 0.0f
 
- Protected Attributes inherited from KODI::RETRO::CRPBaseRenderer
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 {}
 

Member Function Documentation

◆ DrawBlackBars()

void CRPRendererOpenGLES::DrawBlackBars ( )
protected

Draw black bars around the video quad.

This is more efficient than glClear() since it only sets pixels to black that aren't going to be overwritten by the game.


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