Update RingOpenGL - Add Function (Source Code) : void glCopyColorSubTable(GLenum target,GLsizei start,GLint x,GLint y,GLsizei width)
@@ -1724,6 +1724,36 @@ RING_FUNC(ring_glConvolutionParameteriv)
glConvolutionParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glCopyColorSubTable)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ 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_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCopyColorSubTable( (GLenum ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLsizei ) (int) RING_API_GETNUMBER(5));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1807,4 +1837,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glconvolutionparameteri",ring_glConvolutionParameteri);
ring_vm_funcregister("glconvolutionparameterfv",ring_glConvolutionParameterfv);
ring_vm_funcregister("glconvolutionparameteriv",ring_glConvolutionParameteriv);
+ ring_vm_funcregister("glcopycolorsubtable",ring_glCopyColorSubTable);
}
