3 This file is part of gldbg
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
8 #ifndef TEXTURESTATE_H_
9 #define TEXTURESTATE_H_
14 #include "autoconstptr.h"
21 GLenum internal_format;
24 void set_2d(GLenum, unsigned, unsigned);
25 std::string describe() const;
32 std::vector<TexImageState> images;
43 void set_image_2d(unsigned, GLenum, unsigned, unsigned);
44 void set_parameter(GLenum, const int *);
45 std::string describe() const;
50 AutoConstPtr<TextureState> current_2d;
51 AutoConstPtr<TextureState> current_3d;
55 void set_current_texture(GLenum, TextureState *);
56 TextureState *get_current_texture(GLenum);
57 const TextureState *get_current_texture(GLenum) const;
58 std::string describe_binding(GLenum) const;