GLTexture Class Reference

#include <gltexture.h>

List of all members.


Detailed Description

Definition at line 32 of file gltexture.h.


Public Member Functions

 GLTexture ()
 ~GLTexture ()
void Init (const QImage &image)
 Create the texture initialized with QImage.
void Deinit (void)
 Delete the texture.
void Bind (void)
void MakeQuad (float alpha=1.0f, float scale=1.0f)
void SwapWidthHeight (void)
void SetItem (ThumbItem *, const QSize &sz)
void SetSize (const QSize &sz)
void SetScale (float x, float y)
void ScaleTo (const QSize &dest, bool scaleMax)
void SetAngle (int newangle)
QSize GetSize (void) const
uint GetPixelCount (void) const
float GetTextureX (void) const
float GetTextureY (void) const
int GetAngle (void) const
QString GetDescription (const QString &status) const

Private Attributes

GLuint tex
int angle
ThumbItemitem
int width
int height
float cx
float cy

Constructor & Destructor Documentation

GLTexture::GLTexture (  )  [inline]

Definition at line 35 of file gltexture.h.

GLTexture::~GLTexture (  )  [inline]

Definition at line 37 of file gltexture.h.


Member Function Documentation

void GLTexture::Init ( const QImage &  image  ) 

Create the texture initialized with QImage.

Definition at line 34 of file gltexture.cpp.

Referenced by GLSingleView::Load().

void GLTexture::Deinit ( void   ) 

Delete the texture.

Definition at line 52 of file gltexture.cpp.

Referenced by GLSingleView::CleanUp(), Init(), and ~GLTexture().

void GLTexture::Bind ( void   ) 

Definition at line 58 of file gltexture.cpp.

Referenced by GLSingleView::EffectCube(), GLSingleView::EffectFlutter(), and MakeQuad().

void GLTexture::MakeQuad ( float  alpha = 1.0f,
float  scale = 1.0f 
)

void GLTexture::SwapWidthHeight ( void   )  [inline]

Definition at line 44 of file gltexture.h.

Referenced by GLSingleView::Rotate(), and SetItem().

void GLTexture::SetItem ( ThumbItem thumbItem,
const QSize &  sz 
)

Definition at line 98 of file gltexture.cpp.

Referenced by GLSingleView::Load().

void GLTexture::SetSize ( const QSize &  sz  )  [inline]

Definition at line 49 of file gltexture.h.

Referenced by SetItem().

void GLTexture::SetScale ( float  x,
float  y 
) [inline]

Definition at line 51 of file gltexture.h.

Referenced by ScaleTo().

void GLTexture::ScaleTo ( const QSize &  dest,
bool  scaleMax 
)

Definition at line 87 of file gltexture.cpp.

Referenced by GLSingleView::Load(), and GLSingleView::Rotate().

void GLTexture::SetAngle ( int  newangle  )  [inline]

Definition at line 54 of file gltexture.h.

Referenced by GLSingleView::Rotate().

QSize GLTexture::GetSize ( void   )  const [inline]

Definition at line 57 of file gltexture.h.

Referenced by GetDescription(), and ScaleTo().

uint GLTexture::GetPixelCount ( void   )  const [inline]

Definition at line 58 of file gltexture.h.

float GLTexture::GetTextureX ( void   )  const [inline]

Definition at line 59 of file gltexture.h.

Referenced by GLSingleView::EffectCube(), GLSingleView::EffectFlutter(), and MakeQuad().

float GLTexture::GetTextureY ( void   )  const [inline]

Definition at line 60 of file gltexture.h.

Referenced by GLSingleView::EffectCube(), GLSingleView::EffectFlutter(), and MakeQuad().

int GLTexture::GetAngle ( void   )  const [inline]

Definition at line 61 of file gltexture.h.

Referenced by Bind(), and GLSingleView::Rotate().

QString GLTexture::GetDescription ( const QString &  status  )  const

Definition at line 111 of file gltexture.cpp.

Referenced by GLSingleView::createTexInfo().


Member Data Documentation

GLuint GLTexture::tex [private]

Definition at line 65 of file gltexture.h.

Referenced by Bind(), Deinit(), and Init().

int GLTexture::angle [private]

Definition at line 66 of file gltexture.h.

Referenced by GetAngle(), GetDescription(), SetAngle(), and SetItem().

Definition at line 67 of file gltexture.h.

Referenced by GetDescription(), and SetItem().

int GLTexture::width [private]

Definition at line 68 of file gltexture.h.

Referenced by GetPixelCount(), GetSize(), SetSize(), and SwapWidthHeight().

int GLTexture::height [private]

Definition at line 69 of file gltexture.h.

Referenced by GetPixelCount(), GetSize(), SetSize(), and SwapWidthHeight().

float GLTexture::cx [private]

Definition at line 70 of file gltexture.h.

Referenced by GetTextureX(), and SetScale().

float GLTexture::cy [private]

Definition at line 71 of file gltexture.h.

Referenced by GetTextureY(), and SetScale().


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

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