|
MythTV master
|
#include <libmythui/opengl/mythrenderopengl.h>
Public Slots | |
| void | MessageLogged (const QOpenGLDebugMessage &Message) |
| void | logDebugMarker (const QString &Message) |
| void | contextToBeDestroyed (void) |
Public Member Functions | |
| QStringList | GetDescription (void) override |
| bool | IsReady (void) |
| void | makeCurrent () |
| void | doneCurrent () |
| void | swapBuffers () |
| bool | Init (void) |
| int | GetMaxTextureSize (void) const |
| int | GetMaxTextureUnits (void) const |
| int | GetExtraFeatures (void) const |
| QOpenGLFunctions::OpenGLFeatures | GetFeatures (void) const |
| bool | IsRecommendedRenderer (void) |
| void | SetViewPort (QRect Rect, bool ViewportOnly=false) override |
| QRect | GetViewPort (void) |
| void | PushTransformation (const UIEffects &Fx, QPointF &Center) |
| void | PopTransformation (void) |
| void | Flush (void) |
| void | SetBlend (bool Enable) |
| void | SetBackground (uint8_t Red, uint8_t Green, uint8_t Blue, uint8_t Alpha) |
| QFunctionPointer | GetProcAddress (const QString &Proc) const |
| uint64_t | GetSwapCount () |
| QOpenGLBuffer * | CreateVBO (int Size, bool Release=true) |
| MythGLTexture * | CreateTextureFromQImage (QImage *Image) |
| QSize | GetTextureSize (QSize Size, bool Normalised) |
| void | SetTextureFilters (MythGLTexture *Texture, QOpenGLTexture::Filter Filter, QOpenGLTexture::WrapMode Wrap=QOpenGLTexture::ClampToEdge) |
| void | ActiveTexture (GLuint ActiveTex) |
| void | DeleteTexture (MythGLTexture *Texture) |
| QOpenGLFramebufferObject * | CreateFramebuffer (QSize &Size, bool SixteenBit=false) |
| MythGLTexture * | CreateFramebufferTexture (QOpenGLFramebufferObject *Framebuffer) |
| This is no longer used but will probably be needed for future UI enhancements. More... | |
| void | DeleteFramebuffer (QOpenGLFramebufferObject *Framebuffer) |
| void | BindFramebuffer (QOpenGLFramebufferObject *Framebuffer) |
| void | ClearFramebuffer (void) |
| QOpenGLShaderProgram * | CreateShaderProgram (const QString &Vertex, const QString &Fragment) |
| QOpenGLShaderProgram * | CreateComputeShader (const QString &Source) |
| void | DeleteShaderProgram (QOpenGLShaderProgram *Program) |
| bool | EnableShaderProgram (QOpenGLShaderProgram *Program) |
| void | SetShaderProgramParams (QOpenGLShaderProgram *Program, const QMatrix4x4 &Value, const char *Uniform) |
| void | SetShaderProjection (QOpenGLShaderProgram *Program) |
| void | DrawBitmap (MythGLTexture *Texture, QOpenGLFramebufferObject *Target, QRect Source, QRect Destination, QOpenGLShaderProgram *Program, int Alpha=255, qreal Scale=1.0) |
| void | DrawBitmap (std::vector< MythGLTexture * > &Textures, QOpenGLFramebufferObject *Target, QRect Source, QRect Destination, QOpenGLShaderProgram *Program, int Rotation) |
| void | DrawRect (QOpenGLFramebufferObject *Target, QRect Area, const QBrush &FillBrush, const QPen &LinePen, int Alpha) |
| void | DrawRoundRect (QOpenGLFramebufferObject *Target, QRect Area, int CornerRadius, const QBrush &FillBrush, const QPen &LinePen, int Alpha) |
| void | ClearRect (QOpenGLFramebufferObject *Target, QRect Area, int Color, int Alpha) |
| An optimised method to clear a QRect to the given color. More... | |
| void | DrawProcedural (QRect Area, int Alpha, QOpenGLFramebufferObject *Target, QOpenGLShaderProgram *Program, float TimeVal) |
| std::tuple< int, int, int > | GetGPUMemory () |
Public Member Functions inherited from MythEGL | |
| MythEGL (MythRenderOpenGL *Context) | |
| ~MythEGL ()=default | |
| bool | IsEGL (void) |
| bool | HasEGLExtension (const QString &Extension) |
| void * | GetEGLDisplay (void) |
| void | eglImageTargetTexture2DOES (GLenum Target, void *Image) |
| void * | eglCreateImageKHR (void *Disp, void *Context, unsigned int Target, void *Buffer, const int32_t *Attributes) |
| void | eglDestroyImageKHR (void *Disp, void *Image) |
Public Member Functions inherited from MythRender | |
| 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 () |
| 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... | |
Static Public Member Functions | |
| static MythRenderOpenGL * | GetOpenGLRender (void) |
| static MythRenderOpenGL * | Create (QWidget *Widget) |
| static int | GetTextureDataSize (MythGLTexture *Texture) |
| static int | GetBufferSize (QSize Size, QOpenGLTexture::PixelFormat Format, QOpenGLTexture::PixelType Type) |
Static Public Member Functions inherited from MythEGL | |
| static qint32 | GetEGLError (void) |
| static QString | GetEGLVendor (void) |
Static Public Member Functions inherited from ReferenceCounter | |
| static void | PrintDebug (void) |
| Print out any leaks if that level of debugging is enabled. More... | |
Static Public Attributes | |
| static constexpr GLuint | kVertexSize { 16 * sizeof(GLfloat) } |
Protected Member Functions | |
| void | ReleaseResources (void) override |
| MythRenderOpenGL (const QSurfaceFormat &Format, QWidget *Widget) | |
| ~MythRenderOpenGL () override | |
| void | SetWidget (QWidget *Widget) |
| void | Init2DState (void) |
| void | SetMatrixView (void) |
| void | DeleteFramebuffers (void) |
| GLfloat * | GetCachedVertices (GLuint Type, QRect Area) |
| void | ExpireVertices (int Max=0) |
| void | GetCachedVBO (GLuint Type, QRect Area) |
| void | ExpireVBOS (int Max=0) |
| bool | CreateDefaultShaders (void) |
| void | DeleteDefaultShaders (void) |
| void | Check16BitFBO (void) |
| Check for 16bit framebufferobject support. More... | |
| void | glVertexAttribPointerI (GLuint Index, GLint Size, GLenum Type, GLboolean Normalize, GLsizei Stride, GLuint Value) |
Protected Member Functions inherited from MythRender | |
| ~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... | |
Static Protected Member Functions | |
| static bool | UpdateTextureVertices (MythGLTexture *Texture, QRect Source, QRect Destination, int Rotation, qreal Scale=1.0) |
Protected Attributes | |
| bool | m_ready { false } |
| GLuint | m_activeFramebuffer { 0 } |
| GLuint | m_fence { 0 } |
| std::array< QOpenGLShaderProgram *, kShaderCount > | m_defaultPrograms { nullptr } |
| QOpenGLShaderProgram * | m_activeProgram { nullptr } |
| QMap< uint64_t, GLfloat * > | m_cachedVertices |
| QList< uint64_t > | m_vertexExpiry |
| QMap< uint64_t, QOpenGLBuffer * > | m_cachedVBOS |
| QList< uint64_t > | m_vboExpiry |
| QRecursiveMutex | m_lock |
| int | m_lockLevel { 0 } |
| QOpenGLFunctions::OpenGLFeatures | m_features { Multitexture } |
| int | m_extraFeatures { kGLFeatNone } |
| int | m_extraFeaturesUsed { kGLFeatNone } |
| int | m_maxTextureSize { 0 } |
| int | m_maxTextureUnits { 0 } |
| uint64_t | m_swapCount { 0 } |
| QRect | m_viewport |
| GLuint | m_activeTexture { 0 } |
| bool | m_blend { false } |
| int32_t | m_background { 0x00000001 } |
| bool | m_fullRange { true } |
| QMatrix4x4 | m_projection |
| QStack< QMatrix4x4 > | m_transforms |
| QMatrix4x4 | m_parameters |
| QHash< QString, QMatrix4x4 > | m_cachedMatrixUniforms |
| QHash< QOpenGLShaderProgram *, QHash< QByteArray, GLint > > | m_cachedUniformLocations |
| GLuint | m_vao { 0 } |
| bool | m_flushEnabled { true } |
Protected Attributes inherited from MythRender | |
| RenderType | m_type |
| QSize | m_size |
| bool | m_errored {false} |
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} |
Private Member Functions | |
| void | DebugFeatures (void) |
Private Attributes | |
| QOpenGLDebugLogger * | m_openglDebugger { nullptr } |
| QOpenGLDebugMessage::Types | m_openGLDebuggerFilter { QOpenGLDebugMessage::InvalidType } |
| QWindow * | m_window { nullptr } |
Definition at line 95 of file mythrenderopengl.h.
|
protected |
Definition at line 118 of file mythrenderopengl.cpp.
Referenced by Create().
|
overrideprotected |
Definition at line 131 of file mythrenderopengl.cpp.
| void MythRenderOpenGL::ActiveTexture | ( | GLuint | ActiveTex | ) |
Definition at line 695 of file mythrenderopengl.cpp.
Referenced by DrawBitmap(), and MythOpenGLTonemap::Map().
| void MythRenderOpenGL::BindFramebuffer | ( | QOpenGLFramebufferObject * | Framebuffer | ) |
Definition at line 778 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), ClearRect(), CreateFramebuffer(), DrawBitmap(), DrawProcedural(), DrawRoundRect(), MythOpenGLVideo::RenderFrame(), and MythVideoOutputOpenGL::RenderFrame().
|
protected |
Check for 16bit framebufferobject support.
We don't restrict this test based on OpenGL type or version to try and give as much support as possible. It will likely fail on all GL/ES 2.X versions.
Definition at line 1575 of file mythrenderopengl.cpp.
Referenced by Init().
| void MythRenderOpenGL::ClearFramebuffer | ( | void | ) |
Definition at line 798 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), and MythVideoOutputOpenGL::RenderFrame().
| void MythRenderOpenGL::ClearRect | ( | QOpenGLFramebufferObject * | Target, |
| QRect | Area, | ||
| int | Color, | ||
| int | Alpha | ||
| ) |
An optimised method to clear a QRect to the given color.
Definition at line 950 of file mythrenderopengl.cpp.
Referenced by MythVideoOutputOpenGL::RenderFrame().
|
slot |
Definition at line 201 of file mythrenderopengl.cpp.
Referenced by MythRenderOpenGL(), and ~MythRenderOpenGL().
|
static |
Definition at line 77 of file mythrenderopengl.cpp.
Referenced by MythPainterWindowOpenGL::MythPainterWindowOpenGL().
| QOpenGLShaderProgram * MythRenderOpenGL::CreateComputeShader | ( | const QString & | Source | ) |
Definition at line 1435 of file mythrenderopengl.cpp.
Referenced by MythOpenGLTonemap::CreateShader().
|
protected |
Definition at line 1524 of file mythrenderopengl.cpp.
Referenced by Init().
| QOpenGLFramebufferObject * MythRenderOpenGL::CreateFramebuffer | ( | QSize & | Size, |
| bool | SixteenBit = false |
||
| ) |
Definition at line 724 of file mythrenderopengl.cpp.
Referenced by Check16BitFBO(), and MythVideoTextureOpenGL::CreateVideoFrameBuffer().
| MythGLTexture * MythRenderOpenGL::CreateFramebufferTexture | ( | QOpenGLFramebufferObject * | Framebuffer | ) |
This is no longer used but will probably be needed for future UI enhancements.
Definition at line 756 of file mythrenderopengl.cpp.
| QOpenGLShaderProgram * MythRenderOpenGL::CreateShaderProgram | ( | const QString & | Vertex, |
| const QString & | Fragment | ||
| ) |
Definition at line 1408 of file mythrenderopengl.cpp.
Referenced by CreateDefaultShaders(), MythOpenGLVideo::CreateVideoShader(), and MythOpenGLPainter::GetProceduralShader().
| MythGLTexture * MythRenderOpenGL::CreateTextureFromQImage | ( | QImage * | Image | ) |
Definition at line 623 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::GetTextureFromCache().
| QOpenGLBuffer * MythRenderOpenGL::CreateVBO | ( | int | Size, |
| bool | Release = true |
||
| ) |
Definition at line 1091 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), CreateFramebufferTexture(), MythVideoTextureOpenGL::CreateHardwareTextures(), MythVideoTextureOpenGL::CreateTexture(), MythOpenGLTonemap::CreateTexture(), CreateTextureFromQImage(), MythVideoTextureOpenGL::CreateVideoFrameBuffer(), and GetCachedVBO().
|
private |
Definition at line 395 of file mythrenderopengl.cpp.
Referenced by Init().
|
protected |
Definition at line 1534 of file mythrenderopengl.cpp.
Referenced by ReleaseResources().
| void MythRenderOpenGL::DeleteFramebuffer | ( | QOpenGLFramebufferObject * | Framebuffer | ) |
Definition at line 768 of file mythrenderopengl.cpp.
Referenced by MythOpenGLVideo::RenderFrame(), and MythOpenGLVideo::ResetFrameFormat().
|
protected |
| void MythRenderOpenGL::DeleteShaderProgram | ( | QOpenGLShaderProgram * | Program | ) |
Definition at line 1457 of file mythrenderopengl.cpp.
Referenced by MythOpenGLVideo::CreateVideoShader(), DeleteDefaultShaders(), and MythOpenGLVideo::ResetFrameFormat().
| void MythRenderOpenGL::DeleteTexture | ( | MythGLTexture * | Texture | ) |
Definition at line 709 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::DeleteTextures(), MythOpenGLVideo::RenderFrame(), MythOpenGLVideo::ResetFrameFormat(), and VideoVisualGoom::~VideoVisualGoom().
| void MythRenderOpenGL::doneCurrent | ( | ) |
Definition at line 567 of file mythrenderopengl.cpp.
Referenced by ActiveTexture(), BindFramebuffer(), ClearFramebuffer(), ClearRect(), DeleteFramebuffer(), DeleteShaderProgram(), DeleteTexture(), MythVisualMonoScopeOpenGL::Draw(), DrawBitmap(), DrawProcedural(), DrawRoundRect(), EnableShaderProgram(), MythOpenGLPainter::End(), MythVideoOutputOpenGL::EndFrame(), Flush(), SetBackground(), SetBlend(), MythVAAPIInteropGLX::SetPictureAttribute(), SetTextureFilters(), SetViewPort(), MythOpenGLTonemap::~MythOpenGLTonemap(), MythOpenGLVideo::~MythOpenGLVideo(), MythVideoOutputOpenGL::~MythVideoOutputOpenGL(), and OpenGLLocker::~OpenGLLocker().
| void MythRenderOpenGL::DrawBitmap | ( | MythGLTexture * | Texture, |
| QOpenGLFramebufferObject * | Target, | ||
| QRect | Source, | ||
| QRect | Destination, | ||
| QOpenGLShaderProgram * | Program, | ||
| int | Alpha = 255, |
||
| qreal | Scale = 1.0 |
||
| ) |
Definition at line 826 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::DrawImage(), and MythOpenGLVideo::RenderFrame().
| void MythRenderOpenGL::DrawBitmap | ( | std::vector< MythGLTexture * > & | Textures, |
| QOpenGLFramebufferObject * | Target, | ||
| QRect | Source, | ||
| QRect | Destination, | ||
| QOpenGLShaderProgram * | Program, | ||
| int | Rotation | ||
| ) |
Definition at line 881 of file mythrenderopengl.cpp.
| void MythRenderOpenGL::DrawProcedural | ( | QRect | Area, |
| int | Alpha, | ||
| QOpenGLFramebufferObject * | Target, | ||
| QOpenGLShaderProgram * | Program, | ||
| float | TimeVal | ||
| ) |
Definition at line 805 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::DrawProcedural().
| void MythRenderOpenGL::DrawRect | ( | QOpenGLFramebufferObject * | Target, |
| QRect | Area, | ||
| const QBrush & | FillBrush, | ||
| const QPen & | LinePen, | ||
| int | Alpha | ||
| ) |
Definition at line 970 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::DrawRect(), and MythOpenGLVideo::RenderFrame().
| void MythRenderOpenGL::DrawRoundRect | ( | QOpenGLFramebufferObject * | Target, |
| QRect | Area, | ||
| int | CornerRadius, | ||
| const QBrush & | FillBrush, | ||
| const QPen & | LinePen, | ||
| int | Alpha | ||
| ) |
Definition at line 978 of file mythrenderopengl.cpp.
Referenced by DrawRect(), and MythOpenGLPainter::DrawRoundRect().
| bool MythRenderOpenGL::EnableShaderProgram | ( | QOpenGLShaderProgram * | Program | ) |
Definition at line 1467 of file mythrenderopengl.cpp.
Referenced by MythOpenGLTonemap::CreateShader(), MythOpenGLTonemap::Map(), MythOpenGLVideo::RenderFrame(), SetShaderProgramParams(), and MythOpenGLVideo::UpdateShaderParameters().
|
protected |
Definition at line 1317 of file mythrenderopengl.cpp.
Referenced by GetCachedVBO(), and ReleaseResources().
|
protected |
Definition at line 1268 of file mythrenderopengl.cpp.
Referenced by GetCachedVertices(), and ReleaseResources().
| void MythRenderOpenGL::Flush | ( | void | ) |
Definition at line 590 of file mythrenderopengl.cpp.
Referenced by CreateFramebuffer(), DeleteTexture(), MythOpenGLPainter::End(), MythVideoOutputOpenGL::Init(), Init2DState(), ReleaseResources(), and MythVideoOutputOpenGL::RenderEnd().
|
static |
Definition at line 1332 of file mythrenderopengl.cpp.
Referenced by MythVideoTextureOpenGL::CreateTexture(), and CreateTextureFromQImage().
|
protected |
Definition at line 1282 of file mythrenderopengl.cpp.
Referenced by ClearRect(), DrawProcedural(), and DrawRoundRect().
|
protected |
Definition at line 1233 of file mythrenderopengl.cpp.
Referenced by GetCachedVBO().
|
overridevirtual |
Reimplemented from MythRender.
Definition at line 1135 of file mythrenderopengl.cpp.
| int MythRenderOpenGL::GetExtraFeatures | ( | void | ) | const |
Definition at line 451 of file mythrenderopengl.cpp.
Referenced by MythVideoTextureOpenGL::CreateSoftwareTextures(), MythVideoTextureOpenGL::CreateTexture(), MythVideoTextureOpenGL::CreateVideoFrameBuffer(), MythOpenGLVideo::MythOpenGLVideo(), MythVideoOutputOpenGL::MythVideoOutputOpenGL(), MythVideoTextureOpenGL::NV12ToNV12(), MythVideoOutputOpenGL::RenderFrame(), and MythVideoTextureOpenGL::YV12ToYV12().
| QOpenGLFunctions::OpenGLFeatures MythRenderOpenGL::GetFeatures | ( | void | ) | const |
Definition at line 456 of file mythrenderopengl.cpp.
Referenced by MythOpenGLVideo::MythOpenGLVideo().
| std::tuple< int, int, int > MythRenderOpenGL::GetGPUMemory | ( | ) |
Definition at line 1549 of file mythrenderopengl.cpp.
| int MythRenderOpenGL::GetMaxTextureSize | ( | void | ) | const |
Definition at line 441 of file mythrenderopengl.cpp.
| int MythRenderOpenGL::GetMaxTextureUnits | ( | void | ) | const |
Definition at line 446 of file mythrenderopengl.cpp.
Referenced by MythOpenGLVideo::AddDeinterlacer().
|
static |
Definition at line 61 of file mythrenderopengl.cpp.
Referenced by MythCodecContext::GetDecoders(), and MythNVDECContext::GetProfiles().
| QFunctionPointer MythRenderOpenGL::GetProcAddress | ( | const QString & | Proc | ) | const |
Definition at line 1076 of file mythrenderopengl.cpp.
Referenced by Init(), and MythVDPAUInterop::InitNV().
| uint64_t MythRenderOpenGL::GetSwapCount | ( | ) |
Definition at line 513 of file mythrenderopengl.cpp.
|
static |
Definition at line 665 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::DeleteTextures(), and MythOpenGLPainter::GetTextureFromCache().
| QSize MythRenderOpenGL::GetTextureSize | ( | QSize | Size, |
| bool | Normalised | ||
| ) |
Definition at line 651 of file mythrenderopengl.cpp.
Referenced by MythVideoTextureOpenGL::CreateHardwareTextures(), MythVideoTextureOpenGL::CreateTexture(), MythOpenGLTonemap::CreateTexture(), and CreateTextureFromQImage().
|
inline |
Definition at line 118 of file mythrenderopengl.h.
|
inlineprotected |
Definition at line 1051 of file mythrenderopengl.cpp.
Referenced by ClearRect(), DrawBitmap(), DrawProcedural(), and DrawRoundRect().
| bool MythRenderOpenGL::Init | ( | void | ) |
Definition at line 206 of file mythrenderopengl.cpp.
Referenced by MythPainterWindowOpenGL::MythPainterWindowOpenGL().
|
protected |
Definition at line 1061 of file mythrenderopengl.cpp.
Referenced by Init().
| bool MythRenderOpenGL::IsReady | ( | void | ) |
Definition at line 502 of file mythrenderopengl.cpp.
Referenced by IsRecommendedRenderer(), and MythOpenGLPainter::~MythOpenGLPainter().
| bool MythRenderOpenGL::IsRecommendedRenderer | ( | void | ) |
Definition at line 461 of file mythrenderopengl.cpp.
Referenced by MythPainterWindowOpenGL::MythPainterWindowOpenGL().
|
slot |
Definition at line 189 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), MythOpenGLPainter::End(), MythVideoOutputOpenGL::EndFrame(), Init(), MythVideoOutputOpenGL::PrepareFrame(), MythOpenGLVideo::PrepareFrame(), ReleaseResources(), MythOpenGLVideo::RenderFrame(), MythVideoOutputOpenGL::RenderFrame(), and MythOpenGLPainter::~MythOpenGLPainter().
| void MythRenderOpenGL::makeCurrent | ( | ) |
Definition at line 559 of file mythrenderopengl.cpp.
Referenced by ActiveTexture(), MythOpenGLPainter::Begin(), BindFramebuffer(), ClearFramebuffer(), ClearRect(), DeleteFramebuffer(), DeleteShaderProgram(), DeleteTexture(), MythVisualMonoScopeOpenGL::Draw(), VideoVisualGoom::Draw(), DrawBitmap(), DrawProcedural(), DrawRoundRect(), EnableShaderProgram(), MythVideoOutputOpenGL::EndFrame(), Flush(), OpenGLLocker::OpenGLLocker(), SetBackground(), SetBlend(), MythVAAPIInteropGLX::SetPictureAttribute(), SetTextureFilters(), SetViewPort(), MythOpenGLTonemap::~MythOpenGLTonemap(), MythOpenGLVideo::~MythOpenGLVideo(), and MythVideoOutputOpenGL::~MythVideoOutputOpenGL().
|
slot |
Definition at line 141 of file mythrenderopengl.cpp.
Referenced by Init().
| void MythRenderOpenGL::PopTransformation | ( | void | ) |
Definition at line 1388 of file mythrenderopengl.cpp.
Referenced by MythVisualMonoScopeOpenGL::Draw(), and MythOpenGLPainter::PopTransformation().
| void MythRenderOpenGL::PushTransformation | ( | const UIEffects & | Fx, |
| QPointF & | Center | ||
| ) |
Definition at line 1375 of file mythrenderopengl.cpp.
Referenced by MythVisualMonoScopeOpenGL::Draw(), and MythOpenGLPainter::PushTransformation().
|
overrideprotectedvirtual |
Reimplemented from MythRender.
Definition at line 1108 of file mythrenderopengl.cpp.
Referenced by ~MythRenderOpenGL().
| void MythRenderOpenGL::SetBackground | ( | uint8_t | Red, |
| uint8_t | Green, | ||
| uint8_t | Blue, | ||
| uint8_t | Alpha | ||
| ) |
Definition at line 611 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), and MythVideoOutputOpenGL::RenderFrame().
| void MythRenderOpenGL::SetBlend | ( | bool | Enable | ) |
Definition at line 600 of file mythrenderopengl.cpp.
Referenced by Init2DState().
|
protected |
Definition at line 1543 of file mythrenderopengl.cpp.
Referenced by SetViewPort().
| void MythRenderOpenGL::SetShaderProgramParams | ( | QOpenGLShaderProgram * | Program, |
| const QMatrix4x4 & | Value, | ||
| const char * | Uniform | ||
| ) |
Definition at line 1491 of file mythrenderopengl.cpp.
Referenced by MythOpenGLVideo::ColourSpaceUpdate(), DrawRoundRect(), SetShaderProjection(), and MythOpenGLTonemap::UpdateColourSpace().
| void MythRenderOpenGL::SetShaderProjection | ( | QOpenGLShaderProgram * | Program | ) |
Definition at line 1482 of file mythrenderopengl.cpp.
Referenced by ClearRect(), MythVisualMonoScopeOpenGL::Draw(), DrawBitmap(), DrawProcedural(), and DrawRoundRect().
| void MythRenderOpenGL::SetTextureFilters | ( | MythGLTexture * | Texture, |
| QOpenGLTexture::Filter | Filter, | ||
| QOpenGLTexture::WrapMode | Wrap = QOpenGLTexture::ClampToEdge |
||
| ) |
Definition at line 672 of file mythrenderopengl.cpp.
Referenced by MythOpenGLTonemap::CreateTexture(), MythOpenGLVideo::RenderFrame(), and MythVideoTextureOpenGL::SetTextureFilters().
|
overridevirtual |
Reimplemented from MythRender.
Definition at line 577 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::Begin(), and MythOpenGLVideo::RenderFrame().
|
protected |
Definition at line 520 of file mythrenderopengl.cpp.
Referenced by MythRenderOpenGL().
| void MythRenderOpenGL::swapBuffers | ( | ) |
Definition at line 507 of file mythrenderopengl.cpp.
Referenced by MythOpenGLPainter::End(), and MythVideoOutputOpenGL::EndFrame().
|
staticprotected |
Definition at line 1149 of file mythrenderopengl.cpp.
Referenced by DrawBitmap().
|
staticconstexpr |
Definition at line 127 of file mythrenderopengl.h.
Referenced by MythOpenGLPainter::Begin(), CreateFramebufferTexture(), MythVideoTextureOpenGL::CreateHardwareTextures(), MythVideoTextureOpenGL::CreateTexture(), MythOpenGLTonemap::CreateTexture(), CreateTextureFromQImage(), MythVideoTextureOpenGL::CreateVideoFrameBuffer(), and DrawBitmap().
|
protected |
Definition at line 204 of file mythrenderopengl.h.
Referenced by BindFramebuffer(), CreateFramebuffer(), and Init2DState().
|
protected |
Definition at line 211 of file mythrenderopengl.h.
Referenced by DeleteShaderProgram(), and EnableShaderProgram().
|
protected |
Definition at line 233 of file mythrenderopengl.h.
Referenced by ActiveTexture().
|
protected |
Definition at line 235 of file mythrenderopengl.h.
Referenced by SetBackground().
|
protected |
Definition at line 234 of file mythrenderopengl.h.
Referenced by SetBlend().
|
protected |
Definition at line 240 of file mythrenderopengl.h.
Referenced by DeleteShaderProgram(), and SetShaderProgramParams().
|
protected |
Definition at line 241 of file mythrenderopengl.h.
Referenced by DeleteShaderProgram(), and SetShaderProgramParams().
|
protected |
Definition at line 216 of file mythrenderopengl.h.
Referenced by ExpireVBOS(), GetCachedVBO(), and ReleaseResources().
|
protected |
Definition at line 214 of file mythrenderopengl.h.
Referenced by ExpireVertices(), GetCachedVertices(), and ReleaseResources().
|
protected |
Definition at line 210 of file mythrenderopengl.h.
Referenced by ClearRect(), CreateDefaultShaders(), DeleteDefaultShaders(), DrawBitmap(), and DrawRoundRect().
|
protected |
Definition at line 225 of file mythrenderopengl.h.
Referenced by Check16BitFBO(), DebugFeatures(), and Init().
|
protected |
Definition at line 226 of file mythrenderopengl.h.
Referenced by CreateComputeShader(), DrawBitmap(), GetCachedVBO(), GetExtraFeatures(), GetGPUMemory(), and Init().
|
protected |
Definition at line 224 of file mythrenderopengl.h.
Referenced by ActiveTexture(), CreateFramebuffer(), CreateShaderProgram(), DebugFeatures(), GetFeatures(), GetTextureSize(), and Init().
|
protected |
Definition at line 207 of file mythrenderopengl.h.
|
protected |
Definition at line 246 of file mythrenderopengl.h.
Referenced by Flush().
|
protected |
Definition at line 236 of file mythrenderopengl.h.
Referenced by ClearRect(), CreateDefaultShaders(), DrawRoundRect(), and Init().
|
protected |
Definition at line 220 of file mythrenderopengl.h.
Referenced by doneCurrent(), and makeCurrent().
|
protected |
Definition at line 221 of file mythrenderopengl.h.
Referenced by doneCurrent(), and makeCurrent().
|
protected |
Definition at line 227 of file mythrenderopengl.h.
Referenced by DebugFeatures(), GetMaxTextureSize(), and Init().
|
protected |
Definition at line 228 of file mythrenderopengl.h.
Referenced by DebugFeatures(), GetMaxTextureUnits(), and Init().
|
private |
Definition at line 251 of file mythrenderopengl.h.
Referenced by Init(), logDebugMarker(), and ReleaseResources().
|
private |
Definition at line 252 of file mythrenderopengl.h.
Referenced by Init(), and MessageLogged().
|
protected |
Definition at line 239 of file mythrenderopengl.h.
Referenced by DrawRoundRect(), and MythRenderOpenGL().
|
protected |
Definition at line 237 of file mythrenderopengl.h.
Referenced by MythRenderOpenGL(), SetMatrixView(), and SetShaderProjection().
|
protected |
Definition at line 201 of file mythrenderopengl.h.
Referenced by Init(), IsReady(), and ~MythRenderOpenGL().
|
protected |
Definition at line 231 of file mythrenderopengl.h.
Referenced by GetSwapCount(), and swapBuffers().
|
protected |
Definition at line 238 of file mythrenderopengl.h.
Referenced by MythRenderOpenGL(), PopTransformation(), PushTransformation(), and SetShaderProjection().
|
protected |
Definition at line 242 of file mythrenderopengl.h.
Referenced by Init(), and ReleaseResources().
|
protected |
Definition at line 217 of file mythrenderopengl.h.
Referenced by ExpireVBOS(), and GetCachedVBO().
|
protected |
Definition at line 215 of file mythrenderopengl.h.
Referenced by ExpireVertices(), and GetCachedVertices().
|
protected |
Definition at line 232 of file mythrenderopengl.h.
Referenced by SetMatrixView(), and SetViewPort().
|
private |
Definition at line 253 of file mythrenderopengl.h.
Referenced by DrawProcedural(), makeCurrent(), SetWidget(), and swapBuffers().