Update RingOpenGL - Add Function (Source Code) : void glFogf(GLenum pname,GLfloat param)
@@ -2704,6 +2704,24 @@ RING_FUNC(ring_glFlush)
glFlush();
}
+
+RING_FUNC(ring_glFogf)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ glFogf( (GLenum ) (int) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2835,4 +2853,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glfeedbackbuffer",ring_glFeedbackBuffer);
ring_vm_funcregister("glfinish",ring_glFinish);
ring_vm_funcregister("glflush",ring_glFlush);
+ ring_vm_funcregister("glfogf",ring_glFogf);
}
