+ else if(args=="array")
+ {
+ printf("Current vertex arrays:\n");
+ string descr = glstate.get_array(GL_VERTEX_ARRAY).describe();
+ printf(" Vertex: %s\n", descr.c_str());
+ descr = glstate.get_array(GL_NORMAL_ARRAY).describe();
+ printf(" Normal: %s\n", descr.c_str());
+ descr = glstate.get_array(GL_COLOR_ARRAY).describe();
+ printf(" Color: %s\n", descr.c_str());
+ unsigned count = glstate.get_max_texture_units();
+ for(unsigned i=0; i<count; ++i)
+ {
+ descr = glstate.get_texture_coord_array(i).describe();
+ printf(" TexCoord%d: %s\n", i, descr.c_str());
+ }
+ count = glstate.get_max_vertex_attribs();
+ for(unsigned i=0; i<count; ++i)
+ {
+ descr = glstate.get_attrib_array(i).describe();
+ printf(" Attrib%d:%s %s\n", i, (i>=10 ? " " : " "), descr.c_str());
+ }
+ }