Xface Core Library: XEngine::Texture2D Class Reference

XFace / XEngine / XMath

XEngine::Texture2D Class Reference

#include <Texture2D.h>

Inheritance diagram for XEngine::Texture2D:

XEngine::ITexture XEngine::NamedObj List of all members.

Detailed Description

Koray Balci
August 2002
2D (ordinary) texture mapping parameters are stored here.

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)
                        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 ()

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  doxygen 1.4.6-NO