Update RingOpenGL 1.1 - Add Function (Source Code) : void glColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
@@ -3654,6 +3654,32 @@ RING_FUNC(ring_glColorMaterial)
glColorMaterial( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glColorPointer)
+{
+ 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_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColorPointer( (GLint ) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3),(void *) RING_API_GETCPOINTER(4,"void"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3707,6 +3733,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor4usv",ring_glColor4usv);
ring_vm_funcregister("glcolormask",ring_glColorMask);
ring_vm_funcregister("glcolormaterial",ring_glColorMaterial);
+ ring_vm_funcregister("glcolorpointer",ring_glColorPointer);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
