Update RingOpenGL - Add Function (Source Code) : void glGetShaderSource(GLuint shader,GLsizei bufSize,GLsizei *length,GLchar *source)
@@ -4006,6 +4006,32 @@ RING_FUNC(ring_glGetShaderInfoLog)
glGetShaderInfoLog( (GLuint ) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2),(GLsizei *) RING_API_GETCPOINTER(3,"GLsizei"),(GLchar *) RING_API_GETCPOINTER(4,"GLchar"));
}
+
+RING_FUNC(ring_glGetShaderSource)
+{
+ 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 ;
+ }
+ glGetShaderSource( (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);
@@ -4198,4 +4224,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetseparablefilter",ring_glGetSeparableFilter);
ring_vm_funcregister("glgetshaderiv",ring_glGetShaderiv);
ring_vm_funcregister("glgetshaderinfolog",ring_glGetShaderInfoLog);
+ ring_vm_funcregister("glgetshadersource",ring_glGetShaderSource);
}
