Update RingOpenGL - Add Function (Source Code) : void glWindowPos2s(GLshort x,GLshort y)
@@ -10838,6 +10838,20 @@ RING_FUNC(ring_glViewport)
glViewport( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3), (GLsizei ) (int) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glWindowPos2s)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ glWindowPos2s(* (GLshort *) RING_API_GETCPOINTER(1,"GLshort"),* (GLshort *) RING_API_GETCPOINTER(2,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11370,4 +11384,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertexattribpointer",ring_glVertexAttribPointer);
ring_vm_funcregister("glvertexpointer",ring_glVertexPointer);
ring_vm_funcregister("glviewport",ring_glViewport);
+ ring_vm_funcregister("glwindowpos2s",ring_glWindowPos2s);
}
