Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_DEPTH_COMPONENT
@@ -1820,6 +1820,11 @@ RING_FUNC(ring_get_gl_stencil_index)
RING_API_RETNUMBER(GL_STENCIL_INDEX);
}
+RING_FUNC(ring_get_gl_depth_component)
+{
+ RING_API_RETNUMBER(GL_DEPTH_COMPONENT);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -2184,4 +2189,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_stencil",ring_get_gl_stencil);
ring_vm_funcregister("get_gl_color_index",ring_get_gl_color_index);
ring_vm_funcregister("get_gl_stencil_index",ring_get_gl_stencil_index);
+ ring_vm_funcregister("get_gl_depth_component",ring_get_gl_depth_component);
}
