Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_DEPTH_FUNC
@@ -730,6 +730,11 @@ RING_FUNC(ring_get_gl_depth_clear_value)
RING_API_RETNUMBER(GL_DEPTH_CLEAR_VALUE);
}
+RING_FUNC(ring_get_gl_depth_func)
+{
+ RING_API_RETNUMBER(GL_DEPTH_FUNC);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -876,4 +881,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_depth_test",ring_get_gl_depth_test);
ring_vm_funcregister("get_gl_depth_writemask",ring_get_gl_depth_writemask);
ring_vm_funcregister("get_gl_depth_clear_value",ring_get_gl_depth_clear_value);
+ ring_vm_funcregister("get_gl_depth_func",ring_get_gl_depth_func);
}
