Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
OVERLAY::COverlayTextureGL Class Reference

#include <OverlayRendererGL.h>

Inheritance diagram for OVERLAY::COverlayTextureGL:
OVERLAY::COverlay

Public Member Functions

 COverlayTextureGL (const CDVDOverlayImage &o, CRect &rSource)
 Create the overlay for rendering.
 
 COverlayTextureGL (const CDVDOverlaySpu &o)
 
 ~COverlayTextureGL () override
 
void Render (SRenderState &state) override
 
- Public Member Functions inherited from OVERLAY::COverlay
 COverlay ()
 
virtual ~COverlay ()
 

Public Attributes

GLuint m_texture = 0
 
float m_u
 
float m_v
 
bool m_pma
 
- Public Attributes inherited from OVERLAY::COverlay
enum OVERLAY::COverlay::EType m_type
 
enum OVERLAY::COverlay::EAlign m_align
 
enum OVERLAY::COverlay::EPosition m_pos
 
float m_x {0}
 
float m_y {0}
 
float m_width {1.0f}
 
float m_height {1.0f}
 
float m_source_width {0}
 
float m_source_height {0}
 

Additional Inherited Members

- Public Types inherited from OVERLAY::COverlay
enum  EType { TYPE_NONE , TYPE_TEXTURE }
 
enum  EAlign { ALIGN_SCREEN , ALIGN_SCREEN_AR , ALIGN_VIDEO , ALIGN_SUBTITLE }
 
enum  EPosition { POSITION_ABSOLUTE , POSITION_ABSOLUTE_SCREEN , POSITION_RELATIVE }
 
- Static Public Member Functions inherited from OVERLAY::COverlay
static std::shared_ptr< COverlayCreate (const CDVDOverlayImage &o, CRect &rSource)
 
static std::shared_ptr< COverlayCreate (const CDVDOverlaySpu &o)
 
static std::shared_ptr< COverlayCreate (ASS_Image *images, float width, float height)
 
- Protected Member Functions inherited from OVERLAY::COverlay
bool IsSquareResolution (float resRatio)
 Given the resolution ratio determines if it is a 4/3 resolution.
 

Constructor & Destructor Documentation

◆ COverlayTextureGL() [1/2]

COverlayTextureGL::COverlayTextureGL ( const CDVDOverlayImage & o,
CRect & rSource )
explicit

Create the overlay for rendering.

Parameters
oThe overlay image
rSourceThe video source rect size

◆ COverlayTextureGL() [2/2]

COverlayTextureGL::COverlayTextureGL ( const CDVDOverlaySpu & o)
explicit

◆ ~COverlayTextureGL()

COverlayTextureGL::~COverlayTextureGL ( )
override

Member Function Documentation

◆ Render()

void COverlayTextureGL::Render ( SRenderState & state)
overridevirtual

Implements OVERLAY::COverlay.

Member Data Documentation

◆ m_pma

bool OVERLAY::COverlayTextureGL::m_pma

◆ m_texture

GLuint OVERLAY::COverlayTextureGL::m_texture = 0

◆ m_u

float OVERLAY::COverlayTextureGL::m_u

◆ m_v

float OVERLAY::COverlayTextureGL::m_v

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