Update RingOpenGL - Add Function (Source Code) : void glPrioritizeTextures(GLsizei n,const GLuint * textures,const GLclampf * priorities)
@@ -6796,6 +6796,28 @@ RING_FUNC(ring_glPushName)
glPushName( (GLuint ) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glPrioritizeTextures)
+{
+ 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 ;
+ }
+ glPrioritizeTextures( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLuint *) RING_API_GETCPOINTER(2,"GLuint"),(GLclampf *) RING_API_GETCPOINTER(3,"GLclampf"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7132,4 +7154,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glpushclientattrib",ring_glPushClientAttrib);
ring_vm_funcregister("glpushmatrix",ring_glPushMatrix);
ring_vm_funcregister("glpushname",ring_glPushName);
+ ring_vm_funcregister("glprioritizetextures",ring_glPrioritizeTextures);
}
