Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_VERSION
@@ -1940,6 +1940,11 @@ RING_FUNC(ring_get_gl_renderer)
RING_API_RETNUMBER(GL_RENDERER);
}
+RING_FUNC(ring_get_gl_version)
+{
+ RING_API_RETNUMBER(GL_VERSION);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -2328,4 +2333,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_decr",ring_get_gl_decr);
ring_vm_funcregister("get_gl_vendor",ring_get_gl_vendor);
ring_vm_funcregister("get_gl_renderer",ring_get_gl_renderer);
+ ring_vm_funcregister("get_gl_version",ring_get_gl_version);
}
