1 #ifndef MSP_GL_TEXGEN_H_
2 #define MSP_GL_TEXGEN_H_
10 enum TexCoordComponent
20 EYE_LINEAR = GL_EYE_LINEAR,
21 OBJECT_LINEAR = GL_OBJECT_LINEAR,
22 REFLECTION_MAP = GL_REFLECTION_MAP,
23 NORMAL_MAP = GL_NORMAL_MAP
35 void set_mode(TexGenMode);
36 void set_plane(const Vector4 &);
38 void bind_to(TexCoordComponent c) const { bind_to(0, c); }
39 void bind_to(unsigned, TexCoordComponent) const;
41 static const TexGen *current(TexCoordComponent c) { return current(0, c); }
42 static const TexGen *current(unsigned, TexCoordComponent);
43 static void unbind_from(TexCoordComponent c) { unbind_from(0, c); }
44 static void unbind_from(unsigned, TexCoordComponent);
46 static unsigned coord_index(TexCoordComponent);