1 #ifndef TEXTURESTATE_H_
2 #define TEXTURESTATE_H_
7 #include "autoconstptr.h"
14 GLenum internal_format;
17 void set_2d(GLenum, unsigned, unsigned);
18 std::string describe() const;
25 std::vector<TexImageState> images;
36 void set_image_2d(unsigned, GLenum, unsigned, unsigned);
37 void set_parameter(GLenum, const int *);
38 std::string describe() const;
43 AutoConstPtr<TextureState> current_2d;
44 AutoConstPtr<TextureState> current_3d;
48 void set_current_texture(GLenum, TextureState *);
49 TextureState *get_current_texture(GLenum);
50 const TextureState *get_current_texture(GLenum) const;
51 std::string describe_binding(GLenum) const;