#include <mythrender_opengl.h>
Public Member Functions | |
| MythRenderOpenGL (const QGLFormat &format, QPaintDevice *device, RenderType type=kRenderUnknown) | |
| MythRenderOpenGL (const QGLFormat &format, RenderType type=kRenderUnknown) | |
| virtual void | makeCurrent () |
| virtual void | doneCurrent () |
| virtual void | Release (void) |
| void | Init (void) |
| int | GetMaxTextureSize (void) |
| uint | GetFeatures (void) |
| bool | IsRecommendedRenderer (void) |
| void | MoveResizeWindow (const QRect &rect) |
| void | SetViewPort (const QRect &rect, bool viewportonly=false) |
| QRect | GetViewPort (void) |
| virtual void | PushTransformation (const UIEffects &fx, QPointF ¢er)=0 |
| virtual void | PopTransformation (void)=0 |
| void | Flush (bool use_fence) |
| void | SetBlend (bool enable) |
| virtual void | SetColor (int r, int g, int b, int a) |
| void | SetBackground (int r, int g, int b, int a) |
| void | SetFence (void) |
| void * | GetTextureBuffer (uint tex, bool create_buffer=true) |
| void | UpdateTexture (uint tex, void *buf) |
| int | GetTextureType (bool &rect) |
| bool | IsRectTexture (uint type) |
| uint | CreateTexture (QSize act_size, bool use_pbo, uint type, uint data_type=GL_UNSIGNED_BYTE, uint data_fmt=GL_BGRA, uint internal_fmt=GL_RGBA8, uint filter=GL_LINEAR, uint wrap=GL_CLAMP_TO_EDGE) |
| QSize | GetTextureSize (uint type, const QSize &size) |
| QSize | GetTextureSize (uint tex) |
| int | GetTextureDataSize (uint tex) |
| void | SetTextureFilters (uint tex, uint filt, uint wrap) |
| void | ActiveTexture (int active_tex) |
| virtual uint | CreateHelperTexture (void) |
| void | EnableTextures (uint type, uint tex_type=0) |
| void | DisableTextures (void) |
| void | DeleteTexture (uint tex) |
| bool | CreateFrameBuffer (uint &fb, uint tex) |
| void | DeleteFrameBuffer (uint fb) |
| void | BindFramebuffer (uint fb) |
| void | ClearFramebuffer (void) |
| virtual uint | CreateShaderObject (const QString &vert, const QString &frag)=0 |
| virtual void | DeleteShaderObject (uint obj)=0 |
| virtual void | EnableShaderObject (uint obj)=0 |
| virtual void | SetShaderParams (uint prog, void *vals, const char *uniform)=0 |
| void | DrawBitmap (uint tex, uint target, const QRect *src, const QRect *dst, uint prog, int alpha=255, int red=255, int green=255, int blue=255) |
| void | DrawBitmap (uint *textures, uint texture_count, uint target, const QRectF *src, const QRectF *dst, uint prog) |
| void | DrawRect (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) |
| void | DrawRoundRect (const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha) |
| virtual bool | RectanglesAreAccelerated (void) |
Static Public Member Functions | |
| static MythRenderOpenGL * | Create (const QString &painter, QPaintDevice *device=NULL) |
Protected Member Functions | |
| virtual | ~MythRenderOpenGL () |
| virtual void | DrawBitmapPriv (uint tex, const QRect *src, const QRect *dst, uint prog, int alpha, int red, int green, int blue)=0 |
| virtual void | DrawBitmapPriv (uint *textures, uint texture_count, const QRectF *src, const QRectF *dst, uint prog)=0 |
| virtual void | DrawRectPriv (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha)=0 |
| virtual void | DrawRoundRectPriv (const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha)=0 |
| virtual void | Init2DState (void) |
| virtual void | InitProcs (void) |
| void * | GetProcAddress (const QString &proc) const |
| virtual bool | InitFeatures (void) |
| virtual void | ResetVars (void) |
| virtual void | ResetProcs (void) |
| virtual void | SetMatrixView (void)=0 |
| uint | CreatePBO (uint tex) |
| uint | CreateVBO (void) |
| virtual void | DeleteOpenGLResources (void) |
| void | DeleteTextures (void) |
| virtual void | DeleteShaders (void)=0 |
| void | DeleteFrameBuffers (void) |
| bool | UpdateTextureVertices (uint tex, const QRect *src, const QRect *dst) |
| bool | UpdateTextureVertices (uint tex, const QRectF *src, const QRectF *dst) |
| GLfloat * | GetCachedVertices (GLuint type, const QRect &area) |
| void | ExpireVertices (uint max=0) |
| void | GetCachedVBO (GLuint type, const QRect &area) |
| void | ExpireVBOS (uint max=0) |
| bool | ClearTexture (uint tex) |
| uint | GetBufferSize (QSize size, uint fmt, uint type) |
Static Protected Member Functions | |
| static void | StoreBicubicWeights (float x, float *dst) |
Protected Attributes | |
| QHash< GLuint, MythGLTexture > | m_textures |
| QVector< GLuint > | m_framebuffers |
| GLuint | m_fence |
| QMutex * | m_lock |
| int | m_lock_level |
| QString | m_extensions |
| uint | m_exts_supported |
| uint | m_exts_used |
| int | m_max_tex_size |
| int | m_max_units |
| int | m_default_texture_type |
| QRect | m_viewport |
| int | m_active_tex |
| int | m_active_tex_type |
| int | m_active_fb |
| bool | m_blend |
| uint32_t | m_background |
| QMap< uint64_t, GLfloat * > | m_cachedVertices |
| QList< uint64_t > | m_vertexExpiry |
| QMap< uint64_t, GLuint > | m_cachedVBOS |
| QList< uint64_t > | m_vboExpiry |
| MYTH_GLTEXIMAGE1DPROC | m_glTexImage1D |
| MYTH_GLACTIVETEXTUREPROC | m_glActiveTexture |
| MYTH_GLMAPBUFFERPROC | m_glMapBuffer |
| MYTH_GLBINDBUFFERPROC | m_glBindBuffer |
| MYTH_GLGENBUFFERSPROC | m_glGenBuffers |
| MYTH_GLBUFFERDATAPROC | m_glBufferData |
| MYTH_GLUNMAPBUFFERPROC | m_glUnmapBuffer |
| MYTH_GLDELETEBUFFERSPROC | m_glDeleteBuffers |
| MYTH_GLGENFRAMEBUFFERSPROC | m_glGenFramebuffers |
| MYTH_GLBINDFRAMEBUFFERPROC | m_glBindFramebuffer |
| MYTH_GLFRAMEBUFFERTEXTURE2DPROC | m_glFramebufferTexture2D |
| MYTH_GLCHECKFRAMEBUFFERSTATUSPROC | m_glCheckFramebufferStatus |
| MYTH_GLDELETEFRAMEBUFFERSPROC | m_glDeleteFramebuffers |
| MYTH_GLGENFENCESNVPROC | m_glGenFencesNV |
| MYTH_GLDELETEFENCESNVPROC | m_glDeleteFencesNV |
| MYTH_GLSETFENCENVPROC | m_glSetFenceNV |
| MYTH_GLFINISHFENCENVPROC | m_glFinishFenceNV |
| MYTH_GLGENFENCESAPPLEPROC | m_glGenFencesAPPLE |
| MYTH_GLDELETEFENCESAPPLEPROC | m_glDeleteFencesAPPLE |
| MYTH_GLSETFENCEAPPLEPROC | m_glSetFenceAPPLE |
| MYTH_GLFINISHFENCEAPPLEPROC | m_glFinishFenceAPPLE |
Definition at line 103 of file mythrender_opengl.h.
| MythRenderOpenGL::MythRenderOpenGL | ( | const QGLFormat & | format, | |
| QPaintDevice * | device, | |||
| RenderType | type = kRenderUnknown | |||
| ) |
Definition at line 104 of file mythrender_opengl.cpp.
| MythRenderOpenGL::MythRenderOpenGL | ( | const QGLFormat & | format, | |
| RenderType | type = kRenderUnknown | |||
| ) |
Definition at line 110 of file mythrender_opengl.cpp.
| MythRenderOpenGL::~MythRenderOpenGL | ( | ) | [protected, virtual] |
Definition at line 115 of file mythrender_opengl.cpp.
| MythRenderOpenGL * MythRenderOpenGL::Create | ( | const QString & | painter, | |
| QPaintDevice * | device = NULL | |||
| ) | [static] |
Definition at line 49 of file mythrender_opengl.cpp.
Referenced by MythMainWindow::Init().
| void MythRenderOpenGL::makeCurrent | ( | ) | [virtual] |
Definition at line 157 of file mythrender_opengl.cpp.
Referenced by ActiveTexture(), MythOpenGLPainter::Begin(), BindFramebuffer(), ClearFramebuffer(), VAAPIDisplay::Create(), CreateFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), MythRenderOpenGL1::CreateShaderObject(), CreateTexture(), DeleteFrameBuffer(), MythRenderOpenGL2::DeleteShaderObject(), MythRenderOpenGL1::DeleteShaderObject(), DeleteTexture(), VideoOutputOpenGL::DestroyGPUResources(), VideoOutputOpenGL::DestroyVideoResources(), DisableTextures(), DrawBitmap(), DrawRect(), DrawRoundRect(), MythRenderOpenGL2::EnableShaderObject(), MythRenderOpenGL1::EnableShaderObject(), EnableTextures(), Flush(), GetTextureBuffer(), OpenGLLocker::OpenGLLocker(), MythRenderOpenGL1::PopTransformation(), VideoOutputOpenGLVAAPI::ProcessFrame(), MythRenderOpenGL1::PushTransformation(), SetBackground(), SetBlend(), MythRenderOpenGL1::SetColor(), SetFence(), MythRenderOpenGL2::SetShaderParams(), MythRenderOpenGL1::SetShaderParams(), SetTextureFilters(), SetViewPort(), MythRenderOpenGL1::~MythRenderOpenGL1(), and MythRenderOpenGL2::~MythRenderOpenGL2().
| void MythRenderOpenGL::doneCurrent | ( | ) | [virtual] |
Definition at line 165 of file mythrender_opengl.cpp.
Referenced by ActiveTexture(), BindFramebuffer(), ClearFramebuffer(), VAAPIDisplay::Create(), CreateFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), MythRenderOpenGL1::CreateShaderObject(), CreateTexture(), DeleteFrameBuffer(), MythRenderOpenGL2::DeleteShaderObject(), MythRenderOpenGL1::DeleteShaderObject(), DeleteTexture(), VideoOutputOpenGL::DestroyGPUResources(), VideoOutputOpenGL::DestroyVideoResources(), DisableTextures(), DrawBitmap(), DrawRect(), DrawRoundRect(), MythRenderOpenGL2::EnableShaderObject(), MythRenderOpenGL1::EnableShaderObject(), EnableTextures(), MythOpenGLPainter::End(), Flush(), MythRenderOpenGL1::PopTransformation(), VideoOutputOpenGLVAAPI::ProcessFrame(), MythRenderOpenGL1::PushTransformation(), Release(), SetBackground(), SetBlend(), MythRenderOpenGL1::SetColor(), SetFence(), MythRenderOpenGL2::SetShaderParams(), MythRenderOpenGL1::SetShaderParams(), SetTextureFilters(), SetViewPort(), UpdateTexture(), MythRenderOpenGL1::~MythRenderOpenGL1(), MythRenderOpenGL2::~MythRenderOpenGL2(), and OpenGLLocker::~OpenGLLocker().
| void MythRenderOpenGL::Release | ( | void | ) | [virtual] |
Reimplemented from MythRender.
Definition at line 175 of file mythrender_opengl.cpp.
| void MythRenderOpenGL::Init | ( | void | ) |
Definition at line 120 of file mythrender_opengl.cpp.
Referenced by MythMainWindow::Init(), and VideoOutputOpenGL::SetupContext().
| int MythRenderOpenGL::GetMaxTextureSize | ( | void | ) | [inline] |
Definition at line 119 of file mythrender_opengl.h.
| uint MythRenderOpenGL::GetFeatures | ( | void | ) | [inline] |
Definition at line 120 of file mythrender_opengl.h.
Referenced by VideoVisualGoom::Draw(), and OpenGLVideo::Init().
| bool MythRenderOpenGL::IsRecommendedRenderer | ( | void | ) |
Definition at line 130 of file mythrender_opengl.cpp.
Referenced by MythMainWindow::Init().
| void MythRenderOpenGL::MoveResizeWindow | ( | const QRect & | rect | ) |
Definition at line 183 of file mythrender_opengl.cpp.
Referenced by VideoOutputOpenGL::MoveResizeWindow().
| void MythRenderOpenGL::SetViewPort | ( | const QRect & | rect, | |
| bool | viewportonly = false | |||
| ) |
Definition at line 190 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::Begin(), VideoOutputOpenGL::PrepareFrame(), OpenGLVideo::PrepareFrame(), VideoOutputOpenGL::SetupOpenGL(), and OpenGLVideo::SetViewPort().
| QRect MythRenderOpenGL::GetViewPort | ( | void | ) | [inline] |
Definition at line 126 of file mythrender_opengl.h.
Referenced by VideoOutputOpenGL::PrepareFrame().
| virtual void MythRenderOpenGL::PushTransformation | ( | const UIEffects & | fx, | |
| QPointF & | center | |||
| ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by MythOpenGLPainter::PushTransformation().
| virtual void MythRenderOpenGL::PopTransformation | ( | void | ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by MythOpenGLPainter::PopTransformation().
| void MythRenderOpenGL::Flush | ( | bool | use_fence | ) |
Definition at line 203 of file mythrender_opengl.cpp.
Referenced by CreateFrameBuffer(), CreatePBO(), MythRenderOpenGL1::CreateShaderObject(), CreateTexture(), DeleteFrameBuffer(), DeleteFrameBuffers(), DeleteOpenGLResources(), MythRenderOpenGL2::DeleteShaderObject(), MythRenderOpenGL1::DeleteShaderObject(), MythRenderOpenGL2::DeleteShaders(), MythRenderOpenGL1::DeleteShaders(), DeleteTexture(), DeleteTextures(), MythOpenGLPainter::DeleteTextures(), MythOpenGLPainter::End(), Init2DState(), and VideoOutputOpenGL::PrepareFrame().
| void MythRenderOpenGL::SetBlend | ( | bool | enable | ) |
Definition at line 227 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), MythRenderOpenGL1::DrawBitmapPriv(), MythRenderOpenGL1::DrawRectPriv(), MythRenderOpenGL2::DrawRoundRectPriv(), and Init2DState().
| virtual void MythRenderOpenGL::SetColor | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a | |||
| ) | [inline, virtual] |
Reimplemented in MythRenderOpenGL1.
Definition at line 131 of file mythrender_opengl.h.
Referenced by MythOpenGLPainter::Begin().
| void MythRenderOpenGL::SetBackground | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a | |||
| ) |
Definition at line 238 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::Begin(), and VideoOutputOpenGL::PrepareFrame().
| void MythRenderOpenGL::SetFence | ( | void | ) |
Definition at line 250 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::Init().
Definition at line 268 of file mythrender_opengl.cpp.
Referenced by VideoVisualGoom::Draw(), MythOpenGLPainter::GetTextureFromCache(), and OpenGLVideo::UpdateInputFrame().
| void MythRenderOpenGL::UpdateTexture | ( | uint | tex, | |
| void * | buf | |||
| ) |
Definition at line 301 of file mythrender_opengl.cpp.
Referenced by VideoVisualGoom::Draw(), MythOpenGLPainter::GetTextureFromCache(), and OpenGLVideo::UpdateInputFrame().
| int MythRenderOpenGL::GetTextureType | ( | bool & | rect | ) |
Definition at line 327 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::Init(), and InitFeatures().
Definition at line 352 of file mythrender_opengl.cpp.
Referenced by GetTextureSize(), SetTextureFilters(), and UpdateTextureVertices().
| uint MythRenderOpenGL::CreateTexture | ( | QSize | act_size, | |
| bool | use_pbo, | |||
| uint | type, | |||
| uint | data_type = GL_UNSIGNED_BYTE, |
|||
| uint | data_fmt = GL_BGRA, |
|||
| uint | internal_fmt = GL_RGBA8, |
|||
| uint | filter = GL_LINEAR, |
|||
| uint | wrap = GL_CLAMP_TO_EDGE | |||
| ) |
Definition at line 360 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::AddFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), OpenGLVideo::CreateVideoTexture(), VideoVisualGoom::Draw(), and MythOpenGLPainter::GetTextureFromCache().
| QSize MythRenderOpenGL::GetTextureSize | ( | uint | type, | |
| const QSize & | size | |||
| ) |
Definition at line 411 of file mythrender_opengl.cpp.
Referenced by CreateTexture(), and OpenGLVideo::CreateVideoTexture().
| QSize MythRenderOpenGL::GetTextureSize | ( | uint | tex | ) |
Definition at line 432 of file mythrender_opengl.cpp.
| int MythRenderOpenGL::GetTextureDataSize | ( | uint | tex | ) |
Definition at line 439 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::DeleteTextures(), and MythOpenGLPainter::GetTextureFromCache().
Definition at line 446 of file mythrender_opengl.cpp.
Referenced by CreateTexture(), and OpenGLVideo::SetTextureFilters().
| void MythRenderOpenGL::ActiveTexture | ( | int | active_tex | ) |
Definition at line 477 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), and MythRenderOpenGL1::DrawBitmapPriv().
| virtual uint MythRenderOpenGL::CreateHelperTexture | ( | void | ) | [inline, virtual] |
Reimplemented in MythRenderOpenGL1.
Definition at line 148 of file mythrender_opengl.h.
Referenced by OpenGLVideo::AddFilter().
Definition at line 503 of file mythrender_opengl.cpp.
Referenced by CreateFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), CreateTexture(), MythRenderOpenGL2::DrawBitmapPriv(), MythRenderOpenGL1::DrawBitmapPriv(), GetTextureBuffer(), and SetTextureFilters().
| void MythRenderOpenGL::DisableTextures | ( | void | ) |
Definition at line 520 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL1::DrawRectPriv(), and MythRenderOpenGL2::DrawRoundRectPriv().
| void MythRenderOpenGL::DeleteTexture | ( | uint | tex | ) |
Definition at line 530 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::AddFilter(), OpenGLVideo::AddFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), CreateTexture(), OpenGLVideo::DeleteTextures(), MythOpenGLPainter::DeleteTextures(), OpenGLVideo::OptimiseFilters(), OpenGLVideo::Teardown(), and VideoVisualGoom::~VideoVisualGoom().
Definition at line 551 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::AddFrameBuffer().
| void MythRenderOpenGL::DeleteFrameBuffer | ( | uint | fb | ) |
Definition at line 639 of file mythrender_opengl.cpp.
Referenced by OpenGLVideo::OptimiseFilters(), and OpenGLVideo::RemoveFilter().
| void MythRenderOpenGL::BindFramebuffer | ( | uint | fb | ) |
Definition at line 660 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::Begin(), DrawBitmap(), DrawRect(), DrawRoundRect(), VideoOutputOpenGL::PrepareFrame(), and OpenGLVideo::PrepareFrame().
| void MythRenderOpenGL::ClearFramebuffer | ( | void | ) |
Definition at line 674 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::Begin(), and VideoOutputOpenGL::PrepareFrame().
| virtual uint MythRenderOpenGL::CreateShaderObject | ( | const QString & | vert, | |
| const QString & | frag | |||
| ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by OpenGLVideo::AddFragmentProgram().
| virtual void MythRenderOpenGL::DeleteShaderObject | ( | uint | obj | ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by OpenGLVideo::RemoveFilter(), and OpenGLVideo::TearDownDeinterlacer().
| virtual void MythRenderOpenGL::EnableShaderObject | ( | uint | obj | ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
| virtual void MythRenderOpenGL::SetShaderParams | ( | uint | prog, | |
| void * | vals, | |||
| const char * | uniform | |||
| ) | [pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by OpenGLVideo::PrepareFrame().
| void MythRenderOpenGL::DrawBitmap | ( | uint | tex, | |
| uint | target, | |||
| const QRect * | src, | |||
| const QRect * | dst, | |||
| uint | prog, | |||
| int | alpha = 255, |
|||
| int | red = 255, |
|||
| int | green = 255, |
|||
| int | blue = 255 | |||
| ) |
Definition at line 681 of file mythrender_opengl.cpp.
Referenced by VideoVisualGoom::Draw(), MythOpenGLPainter::DrawImage(), and OpenGLVideo::PrepareFrame().
| void MythRenderOpenGL::DrawBitmap | ( | uint * | textures, | |
| uint | texture_count, | |||
| uint | target, | |||
| const QRectF * | src, | |||
| const QRectF * | dst, | |||
| uint | prog | |||
| ) |
Definition at line 697 of file mythrender_opengl.cpp.
| void MythRenderOpenGL::DrawRect | ( | const QRect & | area, | |
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) |
Definition at line 713 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::DrawRect(), and OpenGLVideo::PrepareFrame().
| void MythRenderOpenGL::DrawRoundRect | ( | const QRect & | area, | |
| int | cornerRadius, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) |
Definition at line 722 of file mythrender_opengl.cpp.
Referenced by MythOpenGLPainter::DrawRoundRect().
| virtual bool MythRenderOpenGL::RectanglesAreAccelerated | ( | void | ) | [inline, virtual] |
Reimplemented in MythRenderOpenGL2.
Definition at line 173 of file mythrender_opengl.h.
Referenced by MythOpenGLPainter::DrawRoundRect().
| virtual void MythRenderOpenGL::DrawBitmapPriv | ( | uint | tex, | |
| const QRect * | src, | |||
| const QRect * | dst, | |||
| uint | prog, | |||
| int | alpha, | |||
| int | red, | |||
| int | green, | |||
| int | blue | |||
| ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by DrawBitmap().
| virtual void MythRenderOpenGL::DrawBitmapPriv | ( | uint * | textures, | |
| uint | texture_count, | |||
| const QRectF * | src, | |||
| const QRectF * | dst, | |||
| uint | prog | |||
| ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
| virtual void MythRenderOpenGL::DrawRectPriv | ( | const QRect & | area, | |
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by DrawRect().
| virtual void MythRenderOpenGL::DrawRoundRectPriv | ( | const QRect & | area, | |
| int | cornerRadius, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by DrawRoundRect().
| void MythRenderOpenGL::Init2DState | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Definition at line 732 of file mythrender_opengl.cpp.
Referenced by Init().
| void MythRenderOpenGL::InitProcs | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, MythRenderOpenGL2, and MythRenderOpenGL2ES.
Definition at line 745 of file mythrender_opengl.cpp.
Referenced by Init().
| void * MythRenderOpenGL::GetProcAddress | ( | const QString & | proc | ) | const [protected] |
Definition at line 793 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL2ES::InitProcs(), MythRenderOpenGL2::InitProcs(), MythRenderOpenGL1::InitProcs(), and InitProcs().
| bool MythRenderOpenGL::InitFeatures | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, MythRenderOpenGL2, and MythRenderOpenGL2ES.
Definition at line 810 of file mythrender_opengl.cpp.
Referenced by Init().
| void MythRenderOpenGL::ResetVars | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Definition at line 955 of file mythrender_opengl.cpp.
| void MythRenderOpenGL::ResetProcs | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Definition at line 977 of file mythrender_opengl.cpp.
| virtual void MythRenderOpenGL::SetMatrixView | ( | void | ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Referenced by SetViewPort().
Definition at line 1004 of file mythrender_opengl.cpp.
Referenced by CreateTexture().
| uint MythRenderOpenGL::CreateVBO | ( | void | ) | [protected] |
Definition at line 1026 of file mythrender_opengl.cpp.
Referenced by CreateTexture(), and GetCachedVBO().
| void MythRenderOpenGL::DeleteOpenGLResources | ( | void | ) | [protected, virtual] |
Reimplemented in MythRenderOpenGL1, and MythRenderOpenGL2.
Definition at line 1036 of file mythrender_opengl.cpp.
| void MythRenderOpenGL::DeleteTextures | ( | void | ) | [protected] |
Definition at line 1070 of file mythrender_opengl.cpp.
Referenced by DeleteOpenGLResources().
| virtual void MythRenderOpenGL::DeleteShaders | ( | void | ) | [protected, pure virtual] |
Implemented in MythRenderOpenGL1, and MythRenderOpenGL2.
| void MythRenderOpenGL::DeleteFrameBuffers | ( | void | ) | [protected] |
Definition at line 1085 of file mythrender_opengl.cpp.
Referenced by DeleteOpenGLResources().
| bool MythRenderOpenGL::UpdateTextureVertices | ( | uint | tex, | |
| const QRect * | src, | |||
| const QRect * | dst | |||
| ) | [protected] |
Definition at line 1094 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), and MythRenderOpenGL1::DrawBitmapPriv().
| bool MythRenderOpenGL::UpdateTextureVertices | ( | uint | tex, | |
| const QRectF * | src, | |||
| const QRectF * | dst | |||
| ) | [protected] |
Definition at line 1133 of file mythrender_opengl.cpp.
| GLfloat * MythRenderOpenGL::GetCachedVertices | ( | GLuint | type, | |
| const QRect & | area | |||
| ) | [protected] |
Definition at line 1168 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL1::DrawRectPriv(), and GetCachedVBO().
| void MythRenderOpenGL::ExpireVertices | ( | uint | max = 0 |
) | [protected] |
Definition at line 1203 of file mythrender_opengl.cpp.
Referenced by DeleteOpenGLResources(), and GetCachedVertices().
| void MythRenderOpenGL::GetCachedVBO | ( | GLuint | type, | |
| const QRect & | area | |||
| ) | [protected] |
Definition at line 1217 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL2::DrawRoundRectPriv().
| void MythRenderOpenGL::ExpireVBOS | ( | uint | max = 0 |
) | [protected] |
Definition at line 1251 of file mythrender_opengl.cpp.
Referenced by DeleteOpenGLResources(), and GetCachedVBO().
Definition at line 1266 of file mythrender_opengl.cpp.
Referenced by CreateTexture().
Definition at line 1303 of file mythrender_opengl.cpp.
Referenced by ClearTexture(), and CreateTexture().
| void MythRenderOpenGL::StoreBicubicWeights | ( | float | x, | |
| float * | dst | |||
| ) | [static, protected] |
Definition at line 491 of file mythrender_opengl.cpp.
Referenced by MythRenderOpenGL1::CreateHelperTexture().
QHash<GLuint, MythGLTexture> MythRenderOpenGL::m_textures [protected] |
Definition at line 217 of file mythrender_opengl.h.
Referenced by ClearTexture(), CreateFrameBuffer(), MythRenderOpenGL1::CreateHelperTexture(), CreatePBO(), CreateTexture(), DeleteTexture(), DeleteTextures(), DrawBitmap(), MythRenderOpenGL2::DrawBitmapPriv(), MythRenderOpenGL1::DrawBitmapPriv(), EnableTextures(), GetTextureBuffer(), GetTextureDataSize(), GetTextureSize(), SetTextureFilters(), UpdateTexture(), and UpdateTextureVertices().
QVector<GLuint> MythRenderOpenGL::m_framebuffers [protected] |
Definition at line 218 of file mythrender_opengl.h.
Referenced by BindFramebuffer(), CreateFrameBuffer(), DeleteFrameBuffer(), DeleteFrameBuffers(), and DrawBitmap().
GLuint MythRenderOpenGL::m_fence [protected] |
Definition at line 219 of file mythrender_opengl.h.
Referenced by DeleteOpenGLResources(), Flush(), ResetVars(), and SetFence().
QMutex* MythRenderOpenGL::m_lock [protected] |
Definition at line 222 of file mythrender_opengl.h.
Referenced by doneCurrent(), makeCurrent(), ResetVars(), and ~MythRenderOpenGL().
int MythRenderOpenGL::m_lock_level [protected] |
Definition at line 223 of file mythrender_opengl.h.
Referenced by doneCurrent(), makeCurrent(), Release(), and ResetVars().
QString MythRenderOpenGL::m_extensions [protected] |
Definition at line 226 of file mythrender_opengl.h.
Referenced by GetTextureType(), MythRenderOpenGL1::InitFeatures(), InitFeatures(), InitProcs(), ResetProcs(), and ResetVars().
uint MythRenderOpenGL::m_exts_supported [protected] |
Definition at line 227 of file mythrender_opengl.h.
Referenced by MythRenderOpenGL2::CreateShaderObject(), DeleteOpenGLResources(), MythRenderOpenGL2::InitFeatures(), MythRenderOpenGL1::InitFeatures(), InitFeatures(), and ResetVars().
uint MythRenderOpenGL::m_exts_used [protected] |
Definition at line 228 of file mythrender_opengl.h.
Referenced by ActiveTexture(), CreateFrameBuffer(), CreatePBO(), MythRenderOpenGL1::CreateShaderObject(), CreateTexture(), CreateVBO(), Flush(), InitFeatures(), MythRenderOpenGL2::OptimiseShaderSource(), ResetVars(), SetFence(), and SetTextureFilters().
int MythRenderOpenGL::m_max_tex_size [protected] |
Definition at line 229 of file mythrender_opengl.h.
Referenced by MythRenderOpenGL1::CreateHelperTexture(), InitFeatures(), and ResetVars().
int MythRenderOpenGL::m_max_units [protected] |
Definition at line 230 of file mythrender_opengl.h.
Referenced by InitFeatures(), and ResetVars().
int MythRenderOpenGL::m_default_texture_type [protected] |
Definition at line 231 of file mythrender_opengl.h.
Referenced by CreateTexture(), InitFeatures(), and ResetVars().
QRect MythRenderOpenGL::m_viewport [protected] |
Definition at line 234 of file mythrender_opengl.h.
Referenced by CreateFrameBuffer(), ResetVars(), MythRenderOpenGL2::SetMatrixView(), MythRenderOpenGL1::SetMatrixView(), and SetViewPort().
int MythRenderOpenGL::m_active_tex [protected] |
Definition at line 235 of file mythrender_opengl.h.
Referenced by ActiveTexture(), and ResetVars().
int MythRenderOpenGL::m_active_tex_type [protected] |
Definition at line 236 of file mythrender_opengl.h.
Referenced by DisableTextures(), EnableTextures(), and ResetVars().
int MythRenderOpenGL::m_active_fb [protected] |
Definition at line 237 of file mythrender_opengl.h.
Referenced by BindFramebuffer(), and ResetVars().
bool MythRenderOpenGL::m_blend [protected] |
Definition at line 238 of file mythrender_opengl.h.
Referenced by ResetVars(), and SetBlend().
uint32_t MythRenderOpenGL::m_background [protected] |
Definition at line 239 of file mythrender_opengl.h.
Referenced by ResetVars(), and SetBackground().
QMap<uint64_t,GLfloat*> MythRenderOpenGL::m_cachedVertices [protected] |
Definition at line 242 of file mythrender_opengl.h.
Referenced by DeleteOpenGLResources(), ExpireVertices(), and GetCachedVertices().
QList<uint64_t> MythRenderOpenGL::m_vertexExpiry [protected] |
Definition at line 243 of file mythrender_opengl.h.
Referenced by ExpireVertices(), and GetCachedVertices().
QMap<uint64_t,GLuint> MythRenderOpenGL::m_cachedVBOS [protected] |
Definition at line 244 of file mythrender_opengl.h.
Referenced by DeleteOpenGLResources(), ExpireVBOS(), and GetCachedVBO().
QList<uint64_t> MythRenderOpenGL::m_vboExpiry [protected] |
Definition at line 245 of file mythrender_opengl.h.
Referenced by ExpireVBOS(), and GetCachedVBO().
MYTH_GLTEXIMAGE1DPROC MythRenderOpenGL::m_glTexImage1D [protected] |
Definition at line 248 of file mythrender_opengl.h.
Referenced by ClearTexture(), MythRenderOpenGL1::CreateHelperTexture(), InitProcs(), and ResetProcs().
MYTH_GLACTIVETEXTUREPROC MythRenderOpenGL::m_glActiveTexture [protected] |
Definition at line 251 of file mythrender_opengl.h.
Referenced by ActiveTexture(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLMAPBUFFERPROC MythRenderOpenGL::m_glMapBuffer [protected] |
Definition at line 254 of file mythrender_opengl.h.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), GetCachedVBO(), GetTextureBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLBINDBUFFERPROC MythRenderOpenGL::m_glBindBuffer [protected] |
Definition at line 255 of file mythrender_opengl.h.
Referenced by CreatePBO(), MythRenderOpenGL2::DrawBitmapPriv(), MythRenderOpenGL2::DrawRoundRectPriv(), GetCachedVBO(), GetTextureBuffer(), InitFeatures(), InitProcs(), ResetProcs(), and UpdateTexture().
MYTH_GLGENBUFFERSPROC MythRenderOpenGL::m_glGenBuffers [protected] |
Definition at line 256 of file mythrender_opengl.h.
Referenced by CreatePBO(), CreateVBO(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLBUFFERDATAPROC MythRenderOpenGL::m_glBufferData [protected] |
Definition at line 257 of file mythrender_opengl.h.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), GetCachedVBO(), GetTextureBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLUNMAPBUFFERPROC MythRenderOpenGL::m_glUnmapBuffer [protected] |
Definition at line 258 of file mythrender_opengl.h.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), GetCachedVBO(), InitFeatures(), InitProcs(), ResetProcs(), and UpdateTexture().
MYTH_GLDELETEBUFFERSPROC MythRenderOpenGL::m_glDeleteBuffers [protected] |
Definition at line 259 of file mythrender_opengl.h.
Referenced by DeleteTexture(), DeleteTextures(), ExpireVBOS(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLGENFRAMEBUFFERSPROC MythRenderOpenGL::m_glGenFramebuffers [protected] |
Definition at line 261 of file mythrender_opengl.h.
Referenced by CreateFrameBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLBINDFRAMEBUFFERPROC MythRenderOpenGL::m_glBindFramebuffer [protected] |
Definition at line 262 of file mythrender_opengl.h.
Referenced by BindFramebuffer(), CreateFrameBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLFRAMEBUFFERTEXTURE2DPROC MythRenderOpenGL::m_glFramebufferTexture2D [protected] |
Definition at line 263 of file mythrender_opengl.h.
Referenced by CreateFrameBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLCHECKFRAMEBUFFERSTATUSPROC MythRenderOpenGL::m_glCheckFramebufferStatus [protected] |
Definition at line 264 of file mythrender_opengl.h.
Referenced by CreateFrameBuffer(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLDELETEFRAMEBUFFERSPROC MythRenderOpenGL::m_glDeleteFramebuffers [protected] |
Definition at line 265 of file mythrender_opengl.h.
Referenced by CreateFrameBuffer(), DeleteFrameBuffer(), DeleteFrameBuffers(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLGENFENCESNVPROC MythRenderOpenGL::m_glGenFencesNV [protected] |
Definition at line 267 of file mythrender_opengl.h.
Referenced by InitFeatures(), InitProcs(), ResetProcs(), and SetFence().
MYTH_GLDELETEFENCESNVPROC MythRenderOpenGL::m_glDeleteFencesNV [protected] |
Definition at line 268 of file mythrender_opengl.h.
Referenced by DeleteOpenGLResources(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLSETFENCENVPROC MythRenderOpenGL::m_glSetFenceNV [protected] |
Definition at line 269 of file mythrender_opengl.h.
Referenced by Flush(), InitFeatures(), InitProcs(), and ResetProcs().
MYTH_GLFINISHFENCENVPROC MythRenderOpenGL::m_glFinishFenceNV [protected] |
Definition at line 270 of file mythrender_opengl.h.
Referenced by Flush(), InitFeatures(), InitProcs(), and ResetProcs().
Definition at line 272 of file mythrender_opengl.h.
Referenced by InitFeatures(), InitProcs(), ResetProcs(), and SetFence().
Definition at line 273 of file mythrender_opengl.h.
Referenced by DeleteOpenGLResources(), InitFeatures(), InitProcs(), and ResetProcs().
Definition at line 274 of file mythrender_opengl.h.
Referenced by Flush(), InitFeatures(), InitProcs(), and ResetProcs().
Definition at line 275 of file mythrender_opengl.h.
Referenced by Flush(), InitFeatures(), InitProcs(), and ResetProcs().
1.6.3