Update RingOpenGL - Add Function (Source Code) : void glFogCoordPointer(GLenum type,GLsizei stride,GLvoid * pointer)
@@ -2832,6 +2832,28 @@ RING_FUNC(ring_glFogCoordfv)
glFogCoordfv((GLfloat *) RING_API_GETCPOINTER(1,"GLfloat"));
}
+
+RING_FUNC(ring_glFogCoordPointer)
+{
+ 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 ;
+ }
+ glFogCoordPointer( (GLenum ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2),(GLvoid *) RING_API_GETCPOINTER(3,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2971,4 +2993,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glfogcoordf",ring_glFogCoordf);
ring_vm_funcregister("glfogcoorddv",ring_glFogCoorddv);
ring_vm_funcregister("glfogcoordfv",ring_glFogCoordfv);
+ ring_vm_funcregister("glfogcoordpointer",ring_glFogCoordPointer);
}
