Update RingOpenGL - Add Function (Source Code) : GLboolean glAreTexturesResident(GLsizei n,const GLuint * textures,GLboolean * residences)
@@ -58,9 +58,32 @@ RING_FUNC(ring_glAlphaFunc)
free(RING_API_GETCPOINTER(2,"GLclampf"));
}
+
+RING_FUNC(ring_glAreTexturesResident)
+{
+ 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_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(glAreTexturesResident( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLuint *) RING_API_GETCPOINTER(2,"GLuint"),(GLboolean *) RING_API_GETCPOINTER(3,"GLboolean")));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
ring_vm_funcregister("glactivetexture",ring_glActiveTexture);
ring_vm_funcregister("glalphafunc",ring_glAlphaFunc);
+ ring_vm_funcregister("glaretexturesresident",ring_glAreTexturesResident);
}
