#ifndef _GLSTATE_HPP_
#define _GLSTATE_HPP_
+
#include <ostream>
-void state_dump(std::ostream &os);
+#include "glimports.hpp"
+
+
+class JSONWriter;
+
+
+namespace image {
+ class Image;
+}
+
+
+namespace glstate {
+
+
+const char *enumToString(GLenum pname);
+
+void dumpEnum(JSONWriter &json, GLenum pname);
+
+void dumpParameters(JSONWriter &json);
+
+void dumpCurrentContext(std::ostream &os);
+
+image::Image *
+getDrawBufferImage(GLenum format);
+
+
+} /* namespace glstate */
+
#endif /* _GLSTATE_HPP_ */