X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Ftexture.h;h=3a850f1afc84a9ff07b6aaf97690f71952fccb5c;hb=fd601d4218b63fdf92c5e4dfa32eac8adbda82fa;hp=d386eee5293c80ac1bd1e3ea4a076b8e28ea60ef;hpb=64e2adbbab48320b6cd792e515b44cea112a3be4;p=demo diff --git a/src/texture.h b/src/texture.h index d386eee..3a850f1 100644 --- a/src/texture.h +++ b/src/texture.h @@ -2,15 +2,16 @@ #define TEXTURE_H_ #include +#include + +#include "image.h" class Texture { private: virtual void update() = 0; protected: - int w; - int h; - unsigned char *pixels; + std::vector images; public: std::string name; @@ -19,6 +20,12 @@ public: virtual ~Texture(); virtual bool load(const char *fname); + virtual bool load_cubemap(const char *fname); + + virtual bool is_cubemap() const; + + virtual void bind() = 0; + virtual void unbind() = 0; }; #endif // TEXTURE_H_ \ No newline at end of file