Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_CONSTANT_ATTENUATION
@@ -1600,6 +1600,11 @@ RING_FUNC(ring_get_gl_spot_cutoff)
RING_API_RETNUMBER(GL_SPOT_CUTOFF);
}
+RING_FUNC(ring_get_gl_constant_attenuation)
+{
+ RING_API_RETNUMBER(GL_CONSTANT_ATTENUATION);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -1920,4 +1925,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_spot_direction",ring_get_gl_spot_direction);
ring_vm_funcregister("get_gl_spot_exponent",ring_get_gl_spot_exponent);
ring_vm_funcregister("get_gl_spot_cutoff",ring_get_gl_spot_cutoff);
+ ring_vm_funcregister("get_gl_constant_attenuation",ring_get_gl_constant_attenuation);
}
