Update RingOpenGL - Add Function (Source Code) : void glCallList(GLuint list)
@@ -386,6 +386,20 @@ RING_FUNC(ring_glBufferSubData)
glBufferSubData( (GLenum ) (int) RING_API_GETNUMBER(1), (GLintptr ) RING_API_GETNUMBER(2), (GLsizeiptr ) RING_API_GETNUMBER(3),(GLvoid *) RING_API_GETCPOINTER(4,"GLvoid"));
}
+
+RING_FUNC(ring_glCallList)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCallList( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -407,4 +421,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glblendfuncseparate",ring_glBlendFuncSeparate);
ring_vm_funcregister("glbufferdata",ring_glBufferData);
ring_vm_funcregister("glbuffersubdata",ring_glBufferSubData);
+ ring_vm_funcregister("glcalllist",ring_glCallList);
}
