X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Ftexture.h;h=5c4bf3c7825d16209a21d80d630a756938c09d93;hp=09b2c916ede20141bf4f65d342bccad59fd525e0;hb=c790c297ef925b7f2257ad41e2123cf86305822c;hpb=ccc1a688b59e25bb934a0d3e2bbf477960068d4f diff --git a/src/texture.h b/src/texture.h index 09b2c91..5c4bf3c 100644 --- a/src/texture.h +++ b/src/texture.h @@ -2,6 +2,7 @@ #define TEXTURE_H_ #include "dataset.h" +#include "datamap.h" #include "opengl.h" class Image; @@ -41,6 +42,8 @@ public: unsigned int get_format() const; int get_size(int dim) const; + int get_width() const; + int get_height() const; void create(int xsz, int ysz, TextureType type = TEX_2D, unsigned int ifmt = GL_RGBA); void create_default(TextureType type = TEX_2D); @@ -68,7 +71,7 @@ private: public: TextureSet(); - Texture *get_texture(const char *name, TextureType type = TEX_2D) const; + Texture *get_texture(const char *name, TextureType type = TEX_2D, const DataMap *dmap = 0) const; }; #endif // TEXTURE_H_