/*! -------------------------------------------------------------------- \file texture.h \brief Encapsulate texture data \author James Kuffner \date 2002-09-18 // -------------------------------------------------------------------*/ #ifndef __TEXTURE_MAP_H__ #define __TEXTURE_MAP_H__ #ifndef IGNORE_DEPEND #include #include #endif //--------------------------------------------------------------------- // TextureMap // //! Class to manage texture map data // //--------------------------------------------------------------------- class TextureMap { public: TextureMap(); virtual ~TextureMap(); //! OpenGL texture object identifier GLuint GetName() const { return _name; } //! Texture image size void GetSize(size_t &width, size_t &height) const { width = _width; height = _height; } //! Load a TIFF image texture bool LoadTIFF(char *filename); //! Initialize the texture object bool InitTextureParams(bool bMipmap); protected: // Data uint32* _textureBuf; //!< texture image buffer size_t _width; //!< width of image (pixels) size_t _height; //!< height of image (pixels) GLuint _name; //!< OpenGL identifier }; #endif // __TEXTURE_MAP_H__