#ifndef __TEXTURE_H__ #define __TEXTURE_H__ #include #include #include #include namespace mogltk { class texture : public Base { public: texture(int = 256, int = 256) throw (GeneralException); texture(Handle *) throw (GeneralException); virtual ~texture(); SDL_Surface * GetSurface(); Uint32 * GetPixels(); static SDL_Surface * LoadNTEX(Handle * h) throw (GeneralException) ; Uint32 GetWidth(); Uint32 GetHeight(); private: Uint32 width, height; SDL_Surface * surface; #ifdef TRACE_TEXTURES static texture * header; static texture * footer; texture * next, * prev; #endif }; }; #endif