Update RingOpenGL - Add Function (Source Code) : void glWindowPos2i(GLint x,GLint y)
@@ -10852,6 +10852,24 @@ RING_FUNC(ring_glWindowPos2s)
free(RING_API_GETCPOINTER(2,"GLshort"));
}
+
+RING_FUNC(ring_glWindowPos2i)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ glWindowPos2i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11385,4 +11403,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertexpointer",ring_glVertexPointer);
ring_vm_funcregister("glviewport",ring_glViewport);
ring_vm_funcregister("glwindowpos2s",ring_glWindowPos2s);
+ ring_vm_funcregister("glwindowpos2i",ring_glWindowPos2i);
}
