aboutsummaryrefslogtreecommitdiffstats
path: root/make/glu-impl-common-CustomJavaCode.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-08-21 19:09:45 +0000
committerKenneth Russel <[email protected]>2003-08-21 19:09:45 +0000
commit4195f8984ec08d9c5d4a4794728a046af9f0924b (patch)
tree657040c6f45f9f0d3fc2a3413795adf8a83017c2 /make/glu-impl-common-CustomJavaCode.java
parentd4647dc1d9020f9c7bec2fac06dbb0424cb11c29 (diff)
GLU tesselator port by Pepijn Van Eeckhoudt and Nathan Parker Burg.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@57 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/glu-impl-common-CustomJavaCode.java')
-rw-r--r--make/glu-impl-common-CustomJavaCode.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/make/glu-impl-common-CustomJavaCode.java b/make/glu-impl-common-CustomJavaCode.java
index 04505db55..3332bd375 100644
--- a/make/glu-impl-common-CustomJavaCode.java
+++ b/make/glu-impl-common-CustomJavaCode.java
@@ -5,7 +5,77 @@ public boolean isFunctionAvailable(String gluFunctionName)
}
private GLUProcAddressTable gluProcAddressTable;
+
public GLUImpl(GLUProcAddressTable gluProcAddressTable)
{
this.gluProcAddressTable = gluProcAddressTable;
}
+
+public GLUtesselator gluNewTess() {
+ return GLUtesselatorImpl.gluNewTess();
+}
+
+public void gluDeleteTess(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluDeleteTess();
+}
+
+public void gluTessProperty(GLUtesselator tesselator, int which, double value) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessProperty(which, value);
+}
+
+public void gluGetTessProperty(GLUtesselator tesselator, int which, double[] value) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluGetTessProperty(which, value);
+}
+
+public void gluTessNormal(GLUtesselator tesselator, double x, double y, double z) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessNormal(x, y, z);
+}
+
+public void gluTessCallback(GLUtesselator tesselator, int which, GLUtesselatorCallback aCallback) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessCallback(which, aCallback);
+}
+
+public void gluTessVertex(GLUtesselator tesselator, double[] coords, Object data) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessVertex(coords, data);
+}
+
+public void gluTessBeginPolygon(GLUtesselator tesselator, Object data) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessBeginPolygon(data);
+}
+
+public void gluTessBeginContour(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessBeginContour();
+}
+
+public void gluTessEndContour(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessEndContour();
+}
+
+public void gluTessEndPolygon(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluTessEndPolygon();
+}
+
+public void gluBeginPolygon(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluBeginPolygon();
+}
+
+public void gluNextContour(GLUtesselator tesselator, int type) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluNextContour(type);
+}
+
+public void gluEndPolygon(GLUtesselator tesselator) {
+ GLUtesselatorImpl tess = (GLUtesselatorImpl) tesselator;
+ tess.gluEndPolygon();
+}