Update RingOpenGL - Add Function (Source Code) : void glDrawBuffers(GLsizei n,const GLenum *bufs)
@@ -2370,6 +2370,24 @@ RING_FUNC(ring_glDrawBuffer)
glDrawBuffer( (GLenum ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glDrawBuffers)
+{
+ 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_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glDrawBuffers( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLenum *) RING_API_GETCPOINTER(2,"GLenum"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2482,4 +2500,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldisablevertexattribarray",ring_glDisableVertexAttribArray);
ring_vm_funcregister("gldrawarrays",ring_glDrawArrays);
ring_vm_funcregister("gldrawbuffer",ring_glDrawBuffer);
+ ring_vm_funcregister("gldrawbuffers",ring_glDrawBuffers);
}
