Update RingOpenGL - Add Function (Source Code) : void glCallLists(GLsizei n,GLenum type,const GLvoid * lists)
@@ -400,6 +400,28 @@ RING_FUNC(ring_glCallList)
glCallList( (GLuint ) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glCallLists)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCallLists( (GLsizei ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLvoid *) RING_API_GETCPOINTER(3,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -422,4 +444,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glbufferdata",ring_glBufferData);
ring_vm_funcregister("glbuffersubdata",ring_glBufferSubData);
ring_vm_funcregister("glcalllist",ring_glCallList);
+ ring_vm_funcregister("glcalllists",ring_glCallLists);
}
