Update RingOpenGL - Add Function (Source Code) : void glGetProgramInfoLog(GLuint program,GLsizei maxLength,GLsizei *length,GLchar *infoLog)
@@ -3832,6 +3832,32 @@ RING_FUNC(ring_glGetProgramiv)
glGetProgramiv( (GLuint ) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glGetProgramInfoLog)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISPOINTER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetProgramInfoLog( (GLuint ) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2),(GLsizei *) RING_API_GETCPOINTER(3,"GLsizei"),(GLchar *) RING_API_GETCPOINTER(4,"GLchar"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4017,4 +4043,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetpointerv",ring_glGetPointerv);
ring_vm_funcregister("glgetpolygonstipple",ring_glGetPolygonStipple);
ring_vm_funcregister("glgetprogramiv",ring_glGetProgramiv);
+ ring_vm_funcregister("glgetprograminfolog",ring_glGetProgramInfoLog);
}
