OpenGL 2.0: add 2 user-defined, per-context vertex attributes for coordinates and...
[freeglut] / src / fg_gl2.c
index 47913f4..e7dea50 100644 (file)
 #include "fg_internal.h"
 #include "fg_gl2.h"
 
+void glutSetVertexAttribCoord3(GLint attrib) {
+  if (fgStructure.CurrentWindow != NULL)
+    fgStructure.CurrentWindow->Window.attribute_v_coord = attrib;
+}
+
+void glutSetVertexAttribNormal(GLint attrib) {
+  if (fgStructure.CurrentWindow != NULL)
+    fgStructure.CurrentWindow->Window.attribute_v_normal = attrib;
+}
+
 typedef void (APIENTRY *PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
 typedef void (APIENTRY *PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
 typedef void (APIENTRY *PFNGLBUFFERDATAPROC) (GLenum target, fghGLsizeiptr size, const GLvoid *data, GLenum usage);