Update RingOpenGL - Add Function (Source Code) : void glDeleteLists(GLuint list,GLsizei range)
@@ -2136,6 +2136,24 @@ RING_FUNC(ring_glDeleteBuffers)
glDeleteBuffers( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLuint *) RING_API_GETCPOINTER(2,"GLuint"));
}
+
+RING_FUNC(ring_glDeleteLists)
+{
+ 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 ;
+ }
+ glDeleteLists( (GLuint ) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2233,4 +2251,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcreateshader",ring_glCreateShader);
ring_vm_funcregister("glcullface",ring_glCullFace);
ring_vm_funcregister("gldeletebuffers",ring_glDeleteBuffers);
+ ring_vm_funcregister("gldeletelists",ring_glDeleteLists);
}
