MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MythRender Class Reference

#include <mythrender_base.h>

Inheritance diagram for MythRender:
Inheritance graph
[legend]
Collaboration diagram for MythRender:
Collaboration graph
[legend]

Public Member Functions

 MythRender (RenderType type)
 
bool IsShared (void) const
 Warning: The reference count can be decremented between the call to this function and the use of it's value. More...
 
RenderType Type (void) const
 
bool IsErrored (void) const
 
QSize GetSize (void) const
 
virtual QStringList GetDescription (void)
 
virtual void SetViewPort (const QRect, bool=false)
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter (const QString &debugName, bool logDebug=true)
 Creates reference counter with an initial value of 1. More...
 
virtual int IncrRef (void)
 Increments reference count. More...
 
virtual int DecrRef (void)
 Decrements reference count and deletes on 0. More...
 

Protected Member Functions

 ~MythRender () override=default
 
virtual void ReleaseResources (void)
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 

Protected Attributes

RenderType m_type
 
QSize m_size
 
bool m_errored
 
- Protected Attributes inherited from ReferenceCounter
bool m_logDebug
 This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More...
 
QAtomicInt m_referenceCount {1}
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
 

Detailed Description

Definition at line 23 of file mythrender_base.h.

Constructor & Destructor Documentation

◆ MythRender()

MythRender::MythRender ( RenderType  type)
explicit

Definition at line 4 of file mythrender.cpp.

◆ ~MythRender()

MythRender::~MythRender ( )
overrideprotecteddefault

Member Function Documentation

◆ IsShared()

bool MythRender::IsShared ( void  ) const

Warning: The reference count can be decremented between the call to this function and the use of it's value.

Definition at line 12 of file mythrender.cpp.

Referenced by MythPainterWindow::RenderIsShared().

◆ Type()

RenderType MythRender::Type ( void  ) const
inline

◆ IsErrored()

bool MythRender::IsErrored ( void  ) const
inline

Definition at line 33 of file mythrender_base.h.

◆ GetSize()

QSize MythRender::GetSize ( void  ) const
inline

Definition at line 34 of file mythrender_base.h.

◆ GetDescription()

virtual QStringList MythRender::GetDescription ( void  )
inlinevirtual

Reimplemented in MythRenderVulkan, and MythRenderOpenGL.

Definition at line 35 of file mythrender_base.h.

Referenced by StatusBox::doDisplayStatus().

◆ SetViewPort()

virtual void MythRender::SetViewPort ( const  QRect,
bool  = false 
)
inlinevirtual

Reimplemented in MythRenderOpenGL.

Definition at line 36 of file mythrender_base.h.

Referenced by MythVideoOutputGPU::Init(), and MythVideoOutputGPU::RenderFrame().

◆ ReleaseResources()

virtual void MythRender::ReleaseResources ( void  )
inlineprotectedvirtual

Reimplemented in MythRenderOpenGL.

Definition at line 40 of file mythrender_base.h.

Member Data Documentation

◆ m_type

RenderType MythRender::m_type
protected

Definition at line 42 of file mythrender_base.h.

◆ m_size

QSize MythRender::m_size
protected

Definition at line 43 of file mythrender_base.h.

Referenced by MythRenderD3D9::UpdateSurface().

◆ m_errored

bool MythRender::m_errored
protected

Definition at line 44 of file mythrender_base.h.


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