new render target class while working on the exhibit UI
[laserbrain_demo] / src / texture.h
index 09b2c91..41749f8 100644 (file)
@@ -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);
@@ -57,6 +60,7 @@ public:
 };
 
 void bind_texture(Texture *tex, int tunit = 0);
+int next_pow2(int x);
 
 class TextureSet : public DataSet<Texture*> {
 private:
@@ -68,7 +72,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_