Update RingOpenGL - Add Function (Source Code) : void glCompileShader(GLuint shader)
@@ -1286,6 +1286,20 @@ RING_FUNC(ring_glColorTableParameteriv)
glColorTableParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glCompileShader)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCompileShader( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1356,4 +1370,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolortable",ring_glColorTable);
ring_vm_funcregister("glcolortableparameterfv",ring_glColorTableParameterfv);
ring_vm_funcregister("glcolortableparameteriv",ring_glColorTableParameteriv);
+ ring_vm_funcregister("glcompileshader",ring_glCompileShader);
}
