Update RingOpenGL 1.1 - Add Function (Source Code) : void glEdgeFlag(GLboolean flag)
@@ -4082,6 +4082,20 @@ RING_FUNC(ring_glDrawPixels)
glDrawPixels( (GLsizei ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLenum ) (int) RING_API_GETNUMBER(4),(void *) RING_API_GETCPOINTER(5,"void"));
}
+
+RING_FUNC(ring_glEdgeFlag)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glEdgeFlag( (GLboolean ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4153,6 +4167,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldrawbuffer",ring_glDrawBuffer);
ring_vm_funcregister("gldrawelements",ring_glDrawElements);
ring_vm_funcregister("gldrawpixels",ring_glDrawPixels);
+ ring_vm_funcregister("gledgeflag",ring_glEdgeFlag);
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);
