XEngine::Texture2D Class Reference
[XEngine]
#include <Texture2D.h>
Inheritance diagram for XEngine::Texture2D:
Detailed Description
- Author:
- Koray Balci
- Version:
- 1.0
- Date:
- August 2002
Here is how it is used in RendererGL using OpenGL;
// Get a pointer to base class for the texture; Drawable* pDrawable; // A valid instance ... const ITexture* pTexture = TextureManager::getInstance()->getTexture(pDrawable->getTexName()); // if it is a 2D texture if(pTexture->getTextureType() == ITexture::TEXTURE2D) { glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, pTexture->getTextureID()); }
Public Member Functions | |
TEXTURETYPE | getTextureType () const |
Returns the type of the texture. (TEXTURE2D). | |
Texture2D (const std::string &name) | |
Default Constructor. | |
virtual | ~Texture2D () |
Destructor. |
The documentation for this class was generated from the following file:
Generated on Mon Aug 28 15:39:26 2006 for Xface Core Library by 1.4.6-NO