Update RingOpenGL - Add Function (Source Code) : void glLightf(GLenum light,GLenum pname,GLfloat param)
@@ -4778,6 +4778,28 @@ RING_FUNC(ring_glIsTexture)
RING_API_RETNUMBER(glIsTexture( (GLuint ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glLightf)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glLightf( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5012,4 +5034,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glisquery",ring_glIsQuery);
ring_vm_funcregister("glisshader",ring_glIsShader);
ring_vm_funcregister("glistexture",ring_glIsTexture);
+ ring_vm_funcregister("gllightf",ring_glLightf);
}
