Update RingOpenGL - Add Function (Source Code) : void glDeleteShader(GLuint shader)
@@ -2186,6 +2186,20 @@ RING_FUNC(ring_glDeleteQueries)
glDeleteQueries( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLuint *) RING_API_GETCPOINTER(2,"GLuint"));
}
+
+RING_FUNC(ring_glDeleteShader)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glDeleteShader( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2286,4 +2300,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldeletelists",ring_glDeleteLists);
ring_vm_funcregister("gldeleteprogram",ring_glDeleteProgram);
ring_vm_funcregister("gldeletequeries",ring_glDeleteQueries);
+ ring_vm_funcregister("gldeleteshader",ring_glDeleteShader);
}
