00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 #ifndef OPENCAL_UTILS_TEXTURE_H 00012 #define OPENCAL_UTILS_TEXTURE_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 00017 00018 namespace OpenCAL 00019 { 00020 namespace Utils 00021 { 00022 // Forward declarations 00023 //class Image; 00024 00028 class OPENCAL_API Texture 00029 { 00030 protected: 00031 // Member variables 00032 string m_filename; 00033 bool m_clamp; 00034 //unsigned int m_textureID; 00035 //unsigned int m_width, m_height; 00036 //Image *m_image; 00037 00038 public: 00039 // Constructors and destructor 00040 //Texture(); 00041 Texture(const string &filename, bool clamp = false); 00042 virtual ~Texture(); 00043 00044 // Get functions 00045 const string &getFilename() const { return m_filename; } 00046 bool getClamp() const { return m_clamp; } 00047 //unsigned int getTextureID() const { return m_textureID; } 00048 //unsigned int getWidth() const { return m_width; } 00049 //unsigned int getHeight() const { return m_height; } 00050 00051 // Other functions 00052 //void loadFromFile(const string &filename); 00053 //void initialize(bool clamp = false); 00054 /* 00055 #ifdef USE_OPENGL 00056 void bindGL(); 00057 void unbindGL(); 00058 #endif // USE_OPENGL 00059 */ 00060 }; 00061 } 00062 } 00063 00064 #endif // OPENCAL_UTILS_TEXTURE_H