Update RingOpenGL - Add Function (Source Code) : void glLogicOp(GLenum opcode)
@@ -5076,6 +5076,20 @@ RING_FUNC(ring_glLoadTransposeMatrixf)
glLoadTransposeMatrixf((GLfloat *) RING_API_GETCPOINTER(1,"GLfloat"));
}
+
+RING_FUNC(ring_glLogicOp)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glLogicOp( (GLenum ) (int) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5328,4 +5342,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glloadname",ring_glLoadName);
ring_vm_funcregister("glloadtransposematrixd",ring_glLoadTransposeMatrixd);
ring_vm_funcregister("glloadtransposematrixf",ring_glLoadTransposeMatrixf);
+ ring_vm_funcregister("gllogicop",ring_glLogicOp);
}
