Update RingOpenGL - Add Function (Source Code) : void glGetCompressedTexImage(GLenum target,GLint lod,GLvoid * img)
@@ -3320,6 +3320,28 @@ RING_FUNC(ring_glGetColorTableParameteriv)
glGetColorTableParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glGetCompressedTexImage)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ 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_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetCompressedTexImage( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2),(GLvoid *) RING_API_GETCPOINTER(3,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3481,4 +3503,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetcolortable",ring_glGetColorTable);
ring_vm_funcregister("glgetcolortableparameterfv",ring_glGetColorTableParameterfv);
ring_vm_funcregister("glgetcolortableparameteriv",ring_glGetColorTableParameteriv);
+ ring_vm_funcregister("glgetcompressedteximage",ring_glGetCompressedTexImage);
}
