From 85bd6a6eca6691a7b215e36e09800d410d4a695e Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 15 Sep 2009 11:53:20 +0200 Subject: Initial import of JOGL 2 redbook sample projects -project builds stand alone, all dependencies including doc are downloaded automatically -a full build will create a slideshow applet in dist/ -project can be opened with NetBeans -original credits go to Kiet Le, ported to JOGL 2 by Claudio E. Goes --- src/redbook/.gitignore | 6 + src/redbook/applet.policy | 3 + src/redbook/build.xml | 125 ++++ src/redbook/etc/Util.java | 32 + src/redbook/etc/redbook.txt | 92 +++ ...beans-modules-java-j2seproject-copylibstask.jar | Bin 0 -> 14872 bytes .../org-netbeans-modules-javawebstart-anttasks.jar | Bin 0 -> 38713 bytes src/redbook/lib/nblibraries.properties | 4 + src/redbook/manifest.mf | 3 + src/redbook/master-applet.jnlp | 23 + src/redbook/nbproject/build-impl.xml | 722 +++++++++++++++++++++ src/redbook/nbproject/build-jogl-template-impl.xml | 204 ++++++ .../nbproject/configs/JWS_generated.properties | 7 + src/redbook/nbproject/genfiles.properties | 5 + src/redbook/nbproject/jnlp-impl.xml | 293 +++++++++ src/redbook/nbproject/project.properties | 106 +++ src/redbook/nbproject/project.xml | 24 + src/redbook/preview-applet.html | 185 ++++++ src/redbook/src/Data/leeds.bin | Bin 0 -> 720605 bytes src/redbook/src/glredbook/JOGLApplet.java | 64 ++ src/redbook/src/glredbook10/GLSkeleton.java | 47 ++ src/redbook/src/glredbook10/README.txt | 73 +++ src/redbook/src/glredbook10/accanti.java | 366 +++++++++++ src/redbook/src/glredbook10/accnot.java | 190 ++++++ src/redbook/src/glredbook10/accpersp.java | 410 ++++++++++++ src/redbook/src/glredbook10/accum.java | 277 ++++++++ src/redbook/src/glredbook10/aim.java | 167 +++++ src/redbook/src/glredbook10/alpha.java | 155 +++++ src/redbook/src/glredbook10/alpha3D.java | 199 ++++++ src/redbook/src/glredbook10/anti.java | 165 +++++ src/redbook/src/glredbook10/antipoint.java | 150 +++++ src/redbook/src/glredbook10/antipoly.java | 187 ++++++ src/redbook/src/glredbook10/bezcurve.java | 135 ++++ src/redbook/src/glredbook10/bezmesh.java | 149 +++++ src/redbook/src/glredbook10/bezsurf.java | 160 +++++ src/redbook/src/glredbook10/checker.java | 173 +++++ src/redbook/src/glredbook10/checker2.java | 175 +++++ src/redbook/src/glredbook10/chess.java | 167 +++++ src/redbook/src/glredbook10/clip.java | 118 ++++ src/redbook/src/glredbook10/colormat.java | 187 ++++++ src/redbook/src/glredbook10/cone.java | 139 ++++ src/redbook/src/glredbook10/cube.java | 114 ++++ src/redbook/src/glredbook10/depthcue.java | 120 ++++ src/redbook/src/glredbook10/disk.java | 138 ++++ src/redbook/src/glredbook10/dof.java | 396 +++++++++++ src/redbook/src/glredbook10/dofnot.java | 173 +++++ src/redbook/src/glredbook10/doublebuf.java | 150 +++++ src/redbook/src/glredbook10/drawf.java | 106 +++ src/redbook/src/glredbook10/feedback.java | 171 +++++ src/redbook/src/glredbook10/fog.java | 202 ++++++ src/redbook/src/glredbook10/font.java | 373 +++++++++++ src/redbook/src/glredbook10/glredbook10.txt | 1 + src/redbook/src/glredbook10/jfont.java | 160 +++++ src/redbook/src/glredbook10/light.java | 124 ++++ src/redbook/src/glredbook10/linelist.java | 129 ++++ src/redbook/src/glredbook10/lines.java | 151 +++++ src/redbook/src/glredbook10/list.java | 122 ++++ src/redbook/src/glredbook10/list2.java | 127 ++++ src/redbook/src/glredbook10/maplight.java | 123 ++++ src/redbook/src/glredbook10/material.java | 298 +++++++++ src/redbook/src/glredbook10/mipmap.java | 238 +++++++ src/redbook/src/glredbook10/model.java | 131 ++++ src/redbook/src/glredbook10/movelight.java | 164 +++++ src/redbook/src/glredbook10/pickdepth.java | 217 +++++++ src/redbook/src/glredbook10/pickline.java | 182 ++++++ src/redbook/src/glredbook10/picksquare.java | 229 +++++++ src/redbook/src/glredbook10/plane.java | 164 +++++ src/redbook/src/glredbook10/planet.java | 146 +++++ src/redbook/src/glredbook10/planetup.java | 149 +++++ src/redbook/src/glredbook10/polys.java | 160 +++++ src/redbook/src/glredbook10/robot.java | 163 +++++ src/redbook/src/glredbook10/sccolorlight.java | 138 ++++ src/redbook/src/glredbook10/scene.java | 140 ++++ src/redbook/src/glredbook10/scenebamb.java | 148 +++++ src/redbook/src/glredbook10/sceneflat.java | 138 ++++ src/redbook/src/glredbook10/select.java | 252 +++++++ src/redbook/src/glredbook10/simple.java | 76 +++ src/redbook/src/glredbook10/smooth.java | 110 ++++ src/redbook/src/glredbook10/sphere.java | 105 +++ src/redbook/src/glredbook10/stencil.java | 181 ++++++ src/redbook/src/glredbook10/stroke.java | 235 +++++++ src/redbook/src/glredbook10/tea.java | 158 +++++ src/redbook/src/glredbook10/teaambient.java | 147 +++++ src/redbook/src/glredbook10/teapots.java | 206 ++++++ src/redbook/src/glredbook10/texgen.java | 156 +++++ src/redbook/src/glredbook10/texturesurf.java | 206 ++++++ src/redbook/src/glredbook11/README.txt | 73 +++ src/redbook/src/glredbook11/aargb.java | 135 ++++ src/redbook/src/glredbook11/hello.java | 121 ++++ src/redbook/src/glredbook11/image.java | 206 ++++++ src/redbook/src/glredbook11/polyoff.java | 223 +++++++ src/redbook/src/glredbook11/tess.java | 263 ++++++++ src/redbook/src/glredbook11/tesswind.java | 375 +++++++++++ src/redbook/src/glredbook11/texbind.java | 192 ++++++ src/redbook/src/glredbook11/texgen.java | 202 ++++++ src/redbook/src/glredbook11/texprox.java | 113 ++++ src/redbook/src/glredbook11/texsub.java | 219 +++++++ src/redbook/src/glredbook11/torus.java | 150 +++++ src/redbook/src/glredbook11/unproject.java | 165 +++++ src/redbook/src/glredbook11/varray.java | 228 +++++++ src/redbook/src/glredbook11/wrap.java | 210 ++++++ src/redbook/src/glredbook12x/README.txt | 37 ++ src/redbook/src/glredbook12x/blendeqn.java | 179 +++++ src/redbook/src/glredbook12x/colormatrix.java | 179 +++++ src/redbook/src/glredbook12x/colortable.java | 203 ++++++ src/redbook/src/glredbook12x/convolution.java | 234 +++++++ src/redbook/src/glredbook12x/histogram.java | 227 +++++++ src/redbook/src/glredbook12x/minmax.java | 177 +++++ src/redbook/src/glredbook12x/multitex.java | 227 +++++++ src/redbook/src/glredbook12x/quadric.java | 212 ++++++ src/redbook/src/glredbook12x/texture3d.java | 193 ++++++ src/redbook/src/glredbook1314/README.txt | 17 + src/redbook/src/glredbook1314/combiner.java | 427 ++++++++++++ src/redbook/src/glredbook1314/cubemap.java | 253 ++++++++ src/redbook/src/glredbook1314/fogcoord.java | 190 ++++++ src/redbook/src/glredbook1314/multisamp.java | 189 ++++++ src/redbook/src/glredbook1314/mvarray.java | 198 ++++++ src/redbook/src/glredbook1314/pointp.java | 197 ++++++ src/redbook/src/glredbook1314/shadowmap.java | 418 ++++++++++++ 119 files changed, 19836 insertions(+) create mode 100644 src/redbook/.gitignore create mode 100644 src/redbook/applet.policy create mode 100644 src/redbook/build.xml create mode 100644 src/redbook/etc/Util.java create mode 100644 src/redbook/etc/redbook.txt create mode 100644 src/redbook/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar create mode 100644 src/redbook/lib/JWSAntTasks/org-netbeans-modules-javawebstart-anttasks.jar create mode 100644 src/redbook/lib/nblibraries.properties create mode 100644 src/redbook/manifest.mf create mode 100644 src/redbook/master-applet.jnlp create mode 100644 src/redbook/nbproject/build-impl.xml create mode 100644 src/redbook/nbproject/build-jogl-template-impl.xml create mode 100644 src/redbook/nbproject/configs/JWS_generated.properties create mode 100644 src/redbook/nbproject/genfiles.properties create mode 100644 src/redbook/nbproject/jnlp-impl.xml create mode 100644 src/redbook/nbproject/project.properties create mode 100644 src/redbook/nbproject/project.xml create mode 100644 src/redbook/preview-applet.html create mode 100644 src/redbook/src/Data/leeds.bin create mode 100644 src/redbook/src/glredbook/JOGLApplet.java create mode 100644 src/redbook/src/glredbook10/GLSkeleton.java create mode 100644 src/redbook/src/glredbook10/README.txt create mode 100644 src/redbook/src/glredbook10/accanti.java create mode 100644 src/redbook/src/glredbook10/accnot.java create mode 100644 src/redbook/src/glredbook10/accpersp.java create mode 100644 src/redbook/src/glredbook10/accum.java create mode 100644 src/redbook/src/glredbook10/aim.java create mode 100644 src/redbook/src/glredbook10/alpha.java create mode 100644 src/redbook/src/glredbook10/alpha3D.java create mode 100644 src/redbook/src/glredbook10/anti.java create mode 100644 src/redbook/src/glredbook10/antipoint.java create mode 100644 src/redbook/src/glredbook10/antipoly.java create mode 100644 src/redbook/src/glredbook10/bezcurve.java create mode 100644 src/redbook/src/glredbook10/bezmesh.java create mode 100644 src/redbook/src/glredbook10/bezsurf.java create mode 100644 src/redbook/src/glredbook10/checker.java create mode 100644 src/redbook/src/glredbook10/checker2.java create mode 100644 src/redbook/src/glredbook10/chess.java create mode 100644 src/redbook/src/glredbook10/clip.java create mode 100644 src/redbook/src/glredbook10/colormat.java create mode 100644 src/redbook/src/glredbook10/cone.java create mode 100644 src/redbook/src/glredbook10/cube.java create mode 100644 src/redbook/src/glredbook10/depthcue.java create mode 100644 src/redbook/src/glredbook10/disk.java create mode 100644 src/redbook/src/glredbook10/dof.java create mode 100644 src/redbook/src/glredbook10/dofnot.java create mode 100644 src/redbook/src/glredbook10/doublebuf.java create mode 100644 src/redbook/src/glredbook10/drawf.java create mode 100644 src/redbook/src/glredbook10/feedback.java create mode 100644 src/redbook/src/glredbook10/fog.java create mode 100644 src/redbook/src/glredbook10/font.java create mode 100644 src/redbook/src/glredbook10/glredbook10.txt create mode 100644 src/redbook/src/glredbook10/jfont.java create mode 100644 src/redbook/src/glredbook10/light.java create mode 100644 src/redbook/src/glredbook10/linelist.java create mode 100644 src/redbook/src/glredbook10/lines.java create mode 100644 src/redbook/src/glredbook10/list.java create mode 100644 src/redbook/src/glredbook10/list2.java create mode 100644 src/redbook/src/glredbook10/maplight.java create mode 100644 src/redbook/src/glredbook10/material.java create mode 100644 src/redbook/src/glredbook10/mipmap.java create mode 100644 src/redbook/src/glredbook10/model.java create mode 100644 src/redbook/src/glredbook10/movelight.java create mode 100644 src/redbook/src/glredbook10/pickdepth.java create mode 100644 src/redbook/src/glredbook10/pickline.java create mode 100644 src/redbook/src/glredbook10/picksquare.java create mode 100644 src/redbook/src/glredbook10/plane.java create mode 100644 src/redbook/src/glredbook10/planet.java create mode 100644 src/redbook/src/glredbook10/planetup.java create mode 100644 src/redbook/src/glredbook10/polys.java create mode 100644 src/redbook/src/glredbook10/robot.java create mode 100644 src/redbook/src/glredbook10/sccolorlight.java create mode 100644 src/redbook/src/glredbook10/scene.java create mode 100644 src/redbook/src/glredbook10/scenebamb.java create mode 100644 src/redbook/src/glredbook10/sceneflat.java create mode 100644 src/redbook/src/glredbook10/select.java create mode 100644 src/redbook/src/glredbook10/simple.java create mode 100644 src/redbook/src/glredbook10/smooth.java create mode 100644 src/redbook/src/glredbook10/sphere.java create mode 100644 src/redbook/src/glredbook10/stencil.java create mode 100644 src/redbook/src/glredbook10/stroke.java create mode 100644 src/redbook/src/glredbook10/tea.java create mode 100644 src/redbook/src/glredbook10/teaambient.java create mode 100644 src/redbook/src/glredbook10/teapots.java create mode 100644 src/redbook/src/glredbook10/texgen.java create mode 100644 src/redbook/src/glredbook10/texturesurf.java create mode 100644 src/redbook/src/glredbook11/README.txt create mode 100644 src/redbook/src/glredbook11/aargb.java create mode 100644 src/redbook/src/glredbook11/hello.java create mode 100644 src/redbook/src/glredbook11/image.java create mode 100644 src/redbook/src/glredbook11/polyoff.java create mode 100644 src/redbook/src/glredbook11/tess.java create mode 100644 src/redbook/src/glredbook11/tesswind.java create mode 100644 src/redbook/src/glredbook11/texbind.java create mode 100644 src/redbook/src/glredbook11/texgen.java create mode 100644 src/redbook/src/glredbook11/texprox.java create mode 100644 src/redbook/src/glredbook11/texsub.java create mode 100644 src/redbook/src/glredbook11/torus.java create mode 100644 src/redbook/src/glredbook11/unproject.java create mode 100644 src/redbook/src/glredbook11/varray.java create mode 100644 src/redbook/src/glredbook11/wrap.java create mode 100644 src/redbook/src/glredbook12x/README.txt create mode 100644 src/redbook/src/glredbook12x/blendeqn.java create mode 100644 src/redbook/src/glredbook12x/colormatrix.java create mode 100644 src/redbook/src/glredbook12x/colortable.java create mode 100644 src/redbook/src/glredbook12x/convolution.java create mode 100644 src/redbook/src/glredbook12x/histogram.java create mode 100644 src/redbook/src/glredbook12x/minmax.java create mode 100644 src/redbook/src/glredbook12x/multitex.java create mode 100644 src/redbook/src/glredbook12x/quadric.java create mode 100644 src/redbook/src/glredbook12x/texture3d.java create mode 100644 src/redbook/src/glredbook1314/README.txt create mode 100644 src/redbook/src/glredbook1314/combiner.java create mode 100644 src/redbook/src/glredbook1314/cubemap.java create mode 100644 src/redbook/src/glredbook1314/fogcoord.java create mode 100644 src/redbook/src/glredbook1314/multisamp.java create mode 100644 src/redbook/src/glredbook1314/mvarray.java create mode 100644 src/redbook/src/glredbook1314/pointp.java create mode 100644 src/redbook/src/glredbook1314/shadowmap.java (limited to 'src/redbook') diff --git a/src/redbook/.gitignore b/src/redbook/.gitignore new file mode 100644 index 0000000..32ac8f1 --- /dev/null +++ b/src/redbook/.gitignore @@ -0,0 +1,6 @@ +build +dist +jogl-dist +lib/nblibraries-private.properties +**~ +nbproject/private diff --git a/src/redbook/applet.policy b/src/redbook/applet.policy new file mode 100644 index 0000000..53a9d40 --- /dev/null +++ b/src/redbook/applet.policy @@ -0,0 +1,3 @@ +grant { +permission java.security.AllPermission; +}; diff --git a/src/redbook/build.xml b/src/redbook/build.xml new file mode 100644 index 0000000..af316d5 --- /dev/null +++ b/src/redbook/build.xml @@ -0,0 +1,125 @@ + + + + + Builds, tests, and runs the project redbook. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/redbook/etc/Util.java b/src/redbook/etc/Util.java new file mode 100644 index 0000000..77e3e7f --- /dev/null +++ b/src/redbook/etc/Util.java @@ -0,0 +1,32 @@ +package etc; + +import java.util.Scanner; +import java.util.TreeSet; + +/** + * + * @author mbien + */ +public class Util { + + + public static void main(String[] args) { + Scanner scanner = new Scanner(Util.class.getResourceAsStream("redbook.txt")); + + TreeSet set = new TreeSet(); + while(scanner.hasNext()) + set.add(scanner.next()); + +// for (String item : set) { +// System.out.println(""); +// System.out.println(" "); +// System.out.println(" "); +// System.out.println(""); +// } + for (String item : set) { + System.out.println("