Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_CURRENT_COLOR
@@ -475,6 +475,11 @@ RING_FUNC(ring_get_gl_domain)
RING_API_RETNUMBER(GL_DOMAIN);
}
+RING_FUNC(ring_get_gl_current_color)
+{
+ RING_API_RETNUMBER(GL_CURRENT_COLOR);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -570,4 +575,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_coeff",ring_get_gl_coeff);
ring_vm_funcregister("get_gl_order",ring_get_gl_order);
ring_vm_funcregister("get_gl_domain",ring_get_gl_domain);
+ ring_vm_funcregister("get_gl_current_color",ring_get_gl_current_color);
}
