MythOpenGLPainter Class Reference

#include <mythpainter_ogl.h>

Inheritance diagram for MythOpenGLPainter:

MythPainter

List of all members.


Detailed Description

Definition at line 10 of file mythpainter_ogl.h.


Public Member Functions

 MythOpenGLPainter ()
 ~MythOpenGLPainter ()
virtual QString GetName (void)
virtual bool SupportsAnimation (void)
virtual bool SupportsAlpha (void)
virtual bool SupportsClipping (void)
virtual void Begin (QWidget *parent)
virtual void End ()
virtual void DrawImage (const QRect &dest, MythImage *im, const QRect &src, int alpha)
virtual void DrawText (const QRect &dest, const QString &msg, int flags, const MythFontProperties &font, int alpha)
virtual MythImageGetFormatImage ()
virtual void DeleteFormatImage (MythImage *im)

Protected Member Functions

void RemoveImageFromCache (MythImage *im)
void BindTextureFromCache (MythImage *im, bool alphaonly=false)
int CalcAlpha (int alpha1, int alpha2)
int NearestGLTextureSize (int v)
void ReallyDrawText (QColor color, const QRect &r, int alpha)
MythImageGetImageFromString (const QString &msg, int flags, const QRect &r, const MythFontProperties &font)

Protected Attributes

QMap< MythImage *, unsigned int > m_ImageIntMap
list< MythImage * > m_ImageExpireList
QMap< QString, MythImage * > m_StringToImageMap
list< QString > m_StringExpireList
int q_gl_texture
bool texture_rects
int m_maxTexDim

Constructor & Destructor Documentation

MythOpenGLPainter::MythOpenGLPainter (  ) 

Definition at line 41 of file mythpainter_ogl.cpp.

MythOpenGLPainter::~MythOpenGLPainter (  ) 

Definition at line 46 of file mythpainter_ogl.cpp.


Member Function Documentation

virtual QString MythOpenGLPainter::GetName ( void   )  [inline, virtual]

Implements MythPainter.

Definition at line 16 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsAnimation ( void   )  [inline, virtual]

Implements MythPainter.

Definition at line 17 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsAlpha ( void   )  [inline, virtual]

Implements MythPainter.

Definition at line 18 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsClipping ( void   )  [inline, virtual]

Implements MythPainter.

Definition at line 19 of file mythpainter_ogl.h.

void MythOpenGLPainter::Begin ( QWidget *  parent  )  [virtual]

Reimplemented from MythPainter.

Definition at line 50 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::End ( void   )  [virtual]

Reimplemented from MythPainter.

Definition at line 78 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::DrawImage ( const QRect &  dest,
MythImage im,
const QRect &  src,
int  alpha 
) [virtual]

Implements MythPainter.

Definition at line 237 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::DrawText ( const QRect &  dest,
const QString &  msg,
int  flags,
const MythFontProperties font,
int  alpha 
) [virtual]

Implements MythPainter.

Definition at line 406 of file mythpainter_ogl.cpp.

MythImage * MythOpenGLPainter::GetFormatImage (  )  [virtual]

Implements MythPainter.

Definition at line 484 of file mythpainter_ogl.cpp.

Referenced by GetImageFromString().

void MythOpenGLPainter::DeleteFormatImage ( MythImage im  )  [virtual]

Implements MythPainter.

Definition at line 489 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::RemoveImageFromCache ( MythImage im  )  [protected]

Definition at line 114 of file mythpainter_ogl.cpp.

Referenced by BindTextureFromCache(), and DeleteFormatImage().

void MythOpenGLPainter::BindTextureFromCache ( MythImage im,
bool  alphaonly = false 
) [protected]

Definition at line 128 of file mythpainter_ogl.cpp.

Referenced by DrawImage(), and DrawText().

int MythOpenGLPainter::CalcAlpha ( int  alpha1,
int  alpha2 
) [inline, protected]

Definition at line 284 of file mythpainter_ogl.cpp.

Referenced by DrawText(), and ReallyDrawText().

int MythOpenGLPainter::NearestGLTextureSize ( int  v  )  [protected]

Definition at line 92 of file mythpainter_ogl.cpp.

Referenced by BindTextureFromCache(), and GetImageFromString().

void MythOpenGLPainter::ReallyDrawText ( QColor  color,
const QRect &  r,
int  alpha 
) [protected]

Definition at line 367 of file mythpainter_ogl.cpp.

Referenced by DrawText().

MythImage * MythOpenGLPainter::GetImageFromString ( const QString &  msg,
int  flags,
const QRect &  r,
const MythFontProperties font 
) [protected]

Definition at line 289 of file mythpainter_ogl.cpp.

Referenced by DrawText().


Member Data Documentation

QMap<MythImage *, unsigned int> MythOpenGLPainter::m_ImageIntMap [protected]

Definition at line 44 of file mythpainter_ogl.h.

Referenced by BindTextureFromCache(), and RemoveImageFromCache().

Definition at line 45 of file mythpainter_ogl.h.

Referenced by BindTextureFromCache(), and RemoveImageFromCache().

QMap<QString, MythImage *> MythOpenGLPainter::m_StringToImageMap [protected]

Definition at line 47 of file mythpainter_ogl.h.

Referenced by GetImageFromString().

list<QString> MythOpenGLPainter::m_StringExpireList [protected]

Definition at line 48 of file mythpainter_ogl.h.

Referenced by GetImageFromString().

Definition at line 50 of file mythpainter_ogl.h.

Referenced by BindTextureFromCache(), DrawImage(), and ReallyDrawText().

Definition at line 52 of file mythpainter_ogl.h.

Referenced by Begin(), and NearestGLTextureSize().


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

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5