Update RingOpenGL - Add Function (Source Code) : void glCullFace(GLenum mode)
@@ -2104,6 +2104,20 @@ RING_FUNC(ring_glCreateShader)
RING_API_RETNUMBER(glCreateShader( (GLenum ) (int) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glCullFace)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCullFace( (GLenum ) (int) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2199,4 +2213,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcopytexsubimage3d",ring_glCopyTexSubImage3D);
ring_vm_funcregister("glcreateprogram",ring_glCreateProgram);
ring_vm_funcregister("glcreateshader",ring_glCreateShader);
+ ring_vm_funcregister("glcullface",ring_glCullFace);
}
