Update RingOpenGL - Add Function (Source Code) : void glBindAttribLocation(GLuint program,GLuint index,const GLchar *name)
@@ -144,6 +144,28 @@ RING_FUNC(ring_glBeginQuery)
glBeginQuery( (GLenum ) (int) RING_API_GETNUMBER(1), (GLuint ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glBindAttribLocation)
+{
+ 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 ;
+ }
+ glBindAttribLocation( (GLuint ) RING_API_GETNUMBER(1), (GLuint ) RING_API_GETNUMBER(2),(GLchar *) RING_API_GETCPOINTER(3,"GLchar"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -154,4 +176,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glattachshader",ring_glAttachShader);
ring_vm_funcregister("glbegin",ring_glBegin);
ring_vm_funcregister("glbeginquery",ring_glBeginQuery);
+ ring_vm_funcregister("glbindattriblocation",ring_glBindAttribLocation);
}
