#include <Texture.h>
Inheritance diagram for CTexture:

Public Member Functions | |
| virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
| virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
| virtual void | Bind () |
| void | Destroy () |
| virtual void | Release () |
| UINT | GetDepth () |
| UINT | GetWidth () |
| UINT | GetHeight () |
| FIBITMAP * | GetBitmap () |
| void | GetPixel (tRGBA *pPixel, UINT x, UINT y) |
| void | SetPixel (UINT x, UINT y, tRGBA color) |
| CString & | GetTextureFilename () |
| bool | IsMasked () |
| tRGBA & | GetMask () |
| void | SetMask (tRGBA color) |
| virtual UINT | Create () |
| virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
| tRGBA | m_Mask |
| FIBITMAP * | m_pBitmap |
| CString | m_strTextureFilename |
This class is a generic texture wrapper for FreeImage (FBITMAP), that can load a variety of image file formats.
Definition at line 22 of file Texture.h.
|
|
Method details: Binds this texture as current one Reimplemented in COpenGLTexture. Definition at line 173 of file Texture.cpp. Referenced by CBitmapFont::Create(), CGUIElement::Draw(), and CBitmapFont::Draw(). |
|
|
Method details:
Reimplemented in COpenGLTexture. Definition at line 17 of file Texture.cpp. |
|
|
Method details: Clean-up Reimplemented from CXMLResource.
Reimplemented in COpenGLTexture. Definition at line 220 of file Texture.cpp. References m_pBitmap. Referenced by COpenGLTexture::Destroy(). |
|
|
Method details:
References m_pBitmap. |
|
|
Method details:
References m_pBitmap. Referenced by COpenGLTexture::Create(). |
|
|
Method details:
References m_pBitmap. Referenced by COpenGLTexture::Create(), CGUIProgressBar::Draw(), and CGUIButton::Draw(). |
|
|
Method details:
References m_Mask. |
|
||||||||||||||||
|
Method details:
References m_pBitmap. |
|
|
Method details:
References m_strTextureFilename. Referenced by CGUIElement::GetProperties(), and SaveXML(). |
|
|
Method details:
References m_pBitmap. Referenced by COpenGLTexture::Create(), CGUIProgressBar::Draw(), and CGUIButton::Draw(). |
|
|
Method details:
References m_Mask. Referenced by COpenGLTexture::Create(), and CGUIElement::Draw(). |
|
|
Method details: This is an implementation of Custom RTTI Reimplemented from CXMLResource.
Reimplemented in COpenGLTexture. Definition at line 229 of file Texture.cpp. References CXMLResource::IsOfType(). Referenced by COpenGLTexture::IsOfType(). |
|
||||||||||||
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in COpenGLTexture. Definition at line 23 of file Texture.cpp. References TiXmlElement::Attribute(), CXMLResource::LoadXML(), m_Mask, m_strTextureFilename, and TiXmlNode::pcValue(). Referenced by CTextureManager::LoadResource(), and COpenGLTexture::LoadXML(). |
|
|
Method details: Releases the texture Reimplemented in COpenGLTexture. Definition at line 215 of file Texture.cpp. |
|
||||||||||||
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in COpenGLTexture. Definition at line 84 of file Texture.cpp. References CEntity::GetName(), GetTextureFilename(), TiXmlNode::InsertEndChild(), m_Mask, TiXmlDocument::SaveFile(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). Referenced by CTextureManager::SaveXML(), and COpenGLTexture::SaveXML(). |
|
|
Method details:
References m_Mask. |
|
||||||||||||||||
|
Method details:
References m_pBitmap. |
|
|
Mask color Definition at line 123 of file Texture.h. Referenced by GetMask(), IsMasked(), LoadXML(), SaveXML(), and SetMask(). |
|
|
Pointer to FreeImage structure for raw image data Definition at line 124 of file Texture.h. Referenced by Destroy(), GetBitmap(), GetDepth(), GetHeight(), GetPixel(), GetWidth(), and SetPixel(). |
|
|
Texture filename Definition at line 125 of file Texture.h. Referenced by GetTextureFilename(), and LoadXML(). |
1.3.8