Update RingOpenGL - Add Function (Source Code) : void glBeginQuery(GLenum target,GLuint id)
@@ -126,6 +126,24 @@ RING_FUNC(ring_glBegin)
glBegin( (GLenum ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glBeginQuery)
+{
+ 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 ;
+ }
+ glBeginQuery( (GLenum ) (int) RING_API_GETNUMBER(1), (GLuint ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -135,4 +153,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glarrayelement",ring_glArrayElement);
ring_vm_funcregister("glattachshader",ring_glAttachShader);
ring_vm_funcregister("glbegin",ring_glBegin);
+ ring_vm_funcregister("glbeginquery",ring_glBeginQuery);
}
