MythTV master
mythrender_base.h
Go to the documentation of this file.
1#ifndef MYTHRENDER_H_
2#define MYTHRENDER_H_
3
4// Qt
5#include <QString>
6#include <QMutex>
7#include <QRect>
8#include <QSize>
9#include <QStringList>
10
11// MythTV
13#include "mythuiexp.h"
14
16{
21};
22
24{
25 public:
26 explicit MythRender(RenderType type);
27
30 bool IsShared(void) const;
31
32 RenderType Type(void) const { return m_type; }
33 bool IsErrored(void) const { return m_errored; }
34 QSize GetSize(void) const { return m_size; }
35 virtual QStringList GetDescription();
36 virtual void SetViewPort(const QRect, bool = false) {}
37
38 protected:
39 ~MythRender() override = default;
40 virtual void ReleaseResources(void) { }
41
43 QSize m_size;
45
46 private:
47 Q_DISABLE_COPY(MythRender)
48};
49
50#endif
QSize GetSize(void) const
bool IsErrored(void) const
virtual void ReleaseResources(void)
~MythRender() override=default
RenderType Type(void) const
virtual void SetViewPort(const QRect, bool=false)
RenderType m_type
General purpose reference counter.
RenderType
@ kRenderOpenGL
@ kRenderUnknown
@ kRenderDirect3D9
@ kRenderVulkan
#define MUI_PUBLIC
Definition: mythuiexp.h:9