X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Ftexture.h;h=a1b52d8ede7d1deb879d4f59005085d94bd9efd8;hb=f1c3197c3e035f4be0e10ff6a8d0cf0339824177;hp=bcf9a92a2d1e49fe36b13b8d7c7f57ba620e6a86;hpb=0da7a98f74d00bfa6cf0d47fd7cf0f687eeba5f6;p=demo diff --git a/src/texture.h b/src/texture.h index bcf9a92..a1b52d8 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,7 +20,12 @@ public: virtual ~Texture(); virtual bool load(const char *fname); - virtual void bind() = 0; + virtual bool load_cubemap(const char *fname); + + virtual bool is_cubemap() const; + + virtual void bind(int texture_unit = 0) = 0; + virtual void unbind() = 0; }; #endif // TEXTURE_H_ \ No newline at end of file