#ifndef _TEXTURE_H #define _TEXTURE_H #include "common.h" #include "pixmap.h" #include "samplerstate.h" class Texture { protected: int format; Pixelmap *image; unsigned int flags; SamplerState samp; bool is_valid; friend class Renderer; public: Texture(): is_valid(true), image(NULL) {} Texture(Pixelmap *image,SamplerState samp,unsigned int flags); virtual ~Texture(); virtual bool IsValid() {return is_valid;} virtual SamplerState Sampler() {return samp;} virtual Pixelmap *GetPixmap(); virtual void *GetID()=0; virtual void Bind(int stage)=0; }; #endif