Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_VIEWPORT_BIT
@@ -440,6 +440,11 @@ RING_FUNC(ring_get_gl_exp)
RING_API_RETNUMBER(GL_EXP);
}
+RING_FUNC(ring_get_gl_viewport_bit)
+{
+ RING_API_RETNUMBER(GL_VIEWPORT_BIT);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -528,4 +533,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_copy_pixel_token",ring_get_gl_copy_pixel_token);
ring_vm_funcregister("get_gl_line_reset_token",ring_get_gl_line_reset_token);
ring_vm_funcregister("get_gl_exp",ring_get_gl_exp);
+ ring_vm_funcregister("get_gl_viewport_bit",ring_get_gl_viewport_bit);
}
