Update RingOpenGL - Add Function (Source Code) : void glWindowPos3i(GLint x,GLint y,GLint z)
@@ -10922,6 +10922,28 @@ RING_FUNC(ring_glWindowPos3s)
free(RING_API_GETCPOINTER(3,"GLshort"));
}
+
+RING_FUNC(ring_glWindowPos3i)
+{
+ 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_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glWindowPos3i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11459,4 +11481,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glwindowpos2f",ring_glWindowPos2f);
ring_vm_funcregister("glwindowpos2d",ring_glWindowPos2d);
ring_vm_funcregister("glwindowpos3s",ring_glWindowPos3s);
+ ring_vm_funcregister("glwindowpos3i",ring_glWindowPos3i);
}
