Update RingOpenGL - Add Function (Source Code) : void glCopyTexSubImage1D(GLenum target,GLint level,GLint xoffset,GLint x,GLint y,GLsizei width)
@@ -1958,6 +1958,40 @@ RING_FUNC(ring_glCopyTexImage2D)
glCopyTexImage2D( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5), (GLsizei ) (int) RING_API_GETNUMBER(6), (GLsizei ) (int) RING_API_GETNUMBER(7), (GLint ) RING_API_GETNUMBER(8));
}
+
+RING_FUNC(ring_glCopyTexSubImage1D)
+{
+ if ( RING_API_PARACOUNT != 6 ) {
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(6) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glCopyTexSubImage1D( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5), (GLsizei ) (int) RING_API_GETNUMBER(6));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2048,4 +2082,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcopypixels",ring_glCopyPixels);
ring_vm_funcregister("glcopyteximage1d",ring_glCopyTexImage1D);
ring_vm_funcregister("glcopyteximage2d",ring_glCopyTexImage2D);
+ ring_vm_funcregister("glcopytexsubimage1d",ring_glCopyTexSubImage1D);
}
