Update RingOpenGL 1.1 - Add Function (Source Code) : GLint glRenderMode(GLenum mode)
@@ -7376,6 +7376,20 @@ RING_FUNC(ring_glRectsv)
glRectsv((GLshort *) RING_API_GETCPOINTER(1,"GLshort"),(GLshort *) RING_API_GETCPOINTER(2,"GLshort"));
}
+
+RING_FUNC(ring_glRenderMode)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(glRenderMode( (GLenum ) (int) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7624,6 +7638,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glrectiv",ring_glRectiv);
ring_vm_funcregister("glrects",ring_glRects);
ring_vm_funcregister("glrectsv",ring_glRectsv);
+ ring_vm_funcregister("glrendermode",ring_glRenderMode);
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);
