From 7c27920e3f5f2dee971c09c8b17a63ed936036b9 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Mon, 4 Jul 2011 20:43:10 +0000 Subject: [PATCH] [GB.OPENGL] * NEW: Add support for GL evaluators, some associated Gets are missing. (Tomek) git-svn-id: svn://localhost/gambas/trunk@3925 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.opengl/src/GL.c | 13 +++++++++++++ gb.opengl/src/Makefile.am | 1 + 2 files changed, 14 insertions(+) diff --git a/gb.opengl/src/GL.c b/gb.opengl/src/GL.c index 201294e2a..09dbf434b 100644 --- a/gb.opengl/src/GL.c +++ b/gb.opengl/src/GL.c @@ -38,6 +38,7 @@ #include "GLtextureMapping.h" #include "GLinfo.h" #include "GLselectFeedback.h" +#include "GLeval.h" /**************************************************************************/ @@ -241,6 +242,18 @@ GB_DESC Cgl[] = GB_STATIC_METHOD("RenderMode", "Array", GLRENDERMODE, "(Mode)i"), GB_STATIC_METHOD("SelectBuffer", NULL, GLSELECTBUFFER, NULL), + /* Evaluators - see Gleval.h/c */ + GB_STATIC_METHOD("Map1f", NULL, GLMAP1F, "(Target)i(U1)f(U2)f(Stride)i(Order)i(Points)Float[]"), + GB_STATIC_METHOD("Map2f", NULL, GLMAP2F, "(Target)i(U1)f(U2)f(Ustride)i(Uorder)i(V1)f(V2)f(Vstride)i(Vorder)i(Points)Float[]"), + GB_STATIC_METHOD("EvalCoord1f", NULL, GLEVALCOORD1F, "(U)f"), + GB_STATIC_METHOD("EvalCoord2f", NULL, GLEVALCOORD2F, "(U)f(V)f"), + GB_STATIC_METHOD("MapGrid1f", NULL, GLMAPGRID1F, "(Un)i(U)f(V)f"), + GB_STATIC_METHOD("MapGrid2f", NULL, GLMAPGRID2F, "(Un)i(U1)f(U2)f(Vn)i(V1)f(V2)f"), + GB_STATIC_METHOD("EvalPoint1", NULL, GLEVALPOINT1, "(I)i"), + GB_STATIC_METHOD("EvalPoint2", NULL, GLEVALPOINT2, "(I)i(J)i"), + GB_STATIC_METHOD("EvalMesh1", NULL, GLEVALMESH1, "(Mode)i(I1)i(I2)i"), + GB_STATIC_METHOD("EvalMesh2", NULL, GLEVALMESH2, "(Mode)i(I1)i(I2)i(J1)i(J2)i"), + /* glGetxxxx calls - see GLinfo.h/c */ GB_STATIC_METHOD("GetBooleanv", "Boolean[]", GLGETBOOLEANV, "(Parameter)i"), GB_STATIC_METHOD("GetFloatv", "Float[]", GLGETFLOATV, "(Parameter)i"), diff --git a/gb.opengl/src/Makefile.am b/gb.opengl/src/Makefile.am index f1a902e79..0c4308cd1 100644 --- a/gb.opengl/src/Makefile.am +++ b/gb.opengl/src/Makefile.am @@ -17,6 +17,7 @@ gb_opengl_la_SOURCES = \ GLcolorLighting.h GLcolorLighting.c \ GLcoordTransf.h GLcoordTransf.c \ GLdisplayList.h GLdisplayList.c \ + GLeval.h GLeval.c \ GLfog.h GLfog.c \ GLframeBufferOps.h GLframeBufferOps.c \ GLmodesExec.h GLmodesExec.c \