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);
};
void bind_texture(Texture *tex, int tunit = 0);
+int next_pow2(int x);
class TextureSet : public DataSet<Texture*> {
private: