Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_POSITION
@@ -1580,6 +1580,11 @@ RING_FUNC(ring_get_gl_specular)
RING_API_RETNUMBER(GL_SPECULAR);
}
+RING_FUNC(ring_get_gl_position)
+{
+ RING_API_RETNUMBER(GL_POSITION);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -1896,4 +1901,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_ambient",ring_get_gl_ambient);
ring_vm_funcregister("get_gl_diffuse",ring_get_gl_diffuse);
ring_vm_funcregister("get_gl_specular",ring_get_gl_specular);
+ ring_vm_funcregister("get_gl_position",ring_get_gl_position);
}
