Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_QUADRATIC_ATTENUATION
@@ -1610,6 +1610,11 @@ RING_FUNC(ring_get_gl_linear_attenuation)
RING_API_RETNUMBER(GL_LINEAR_ATTENUATION);
}
+RING_FUNC(ring_get_gl_quadratic_attenuation)
+{
+ RING_API_RETNUMBER(GL_QUADRATIC_ATTENUATION);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -1932,4 +1937,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_spot_cutoff",ring_get_gl_spot_cutoff);
ring_vm_funcregister("get_gl_constant_attenuation",ring_get_gl_constant_attenuation);
ring_vm_funcregister("get_gl_linear_attenuation",ring_get_gl_linear_attenuation);
+ ring_vm_funcregister("get_gl_quadratic_attenuation",ring_get_gl_quadratic_attenuation);
}
