Update RingOpenGL 1.1 - Add Function (Source Code) : GLboolean glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
@@ -2716,10 +2716,33 @@ RING_FUNC(ring_glAlphaFunc)
glAlphaFunc( (GLenum ) (int) RING_API_GETNUMBER(1), (GLclampf ) (int) RING_API_GETNUMBER(2));
}
+
+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("glalphafunc",ring_glAlphaFunc);
+ ring_vm_funcregister("glaretexturesresident",ring_glAreTexturesResident);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
