#include <gltexture.h>
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 |
| ThumbItem * | item |
| int | width |
| int | height |
| float | cx |
| float | cy |
| GLTexture::GLTexture | ( | ) | [inline] |
Definition at line 35 of file gltexture.h.
| GLTexture::~GLTexture | ( | ) | [inline] |
Definition at line 37 of file gltexture.h.
| 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 | |||
| ) |
Definition at line 66 of file gltexture.cpp.
Referenced by GLSingleView::EffectBend(), GLSingleView::EffectBlend(), GLSingleView::EffectFade(), GLSingleView::EffectFlutter(), GLSingleView::EffectInOut(), GLSingleView::EffectRotate(), GLSingleView::EffectSlide(), GLSingleView::EffectZoomBlend(), and GLSingleView::paintTexture().
| void GLTexture::SwapWidthHeight | ( | void | ) | [inline] |
| void GLTexture::SetItem | ( | ThumbItem * | thumbItem, | |
| const QSize & | sz | |||
| ) |
| void GLTexture::SetSize | ( | const QSize & | sz | ) | [inline] |
| void GLTexture::SetScale | ( | float | x, | |
| float | y | |||
| ) | [inline] |
| 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] |
| QSize GLTexture::GetSize | ( | void | ) | const [inline] |
| 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] |
| QString GLTexture::GetDescription | ( | const QString & | status | ) | const |
GLuint GLTexture::tex [private] |
int GLTexture::angle [private] |
Definition at line 66 of file gltexture.h.
Referenced by GetAngle(), GetDescription(), SetAngle(), and SetItem().
ThumbItem* GLTexture::item [private] |
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] |
float GLTexture::cy [private] |
1.5.5