Update RingOpenGL - Add Function (Source Code) : GLboolean glIsTexture(GLuint texture)
@@ -4764,6 +4764,20 @@ RING_FUNC(ring_glIsShader)
RING_API_RETNUMBER(glIsShader( (GLuint ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glIsTexture)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(glIsTexture( (GLuint ) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4997,4 +5011,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glisprogram",ring_glIsProgram);
ring_vm_funcregister("glisquery",ring_glIsQuery);
ring_vm_funcregister("glisshader",ring_glIsShader);
+ ring_vm_funcregister("glistexture",ring_glIsTexture);
}
