From a33fade58b3cf22b72241767e6615042a5ed22c1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 18 Jul 2009 23:32:24 +0000 Subject: Updates to joglutils workspace to work with JOGL 2 APIs. Cleaned up build process. Added targets for joglutils.jar and joglutils-demos.jar as well as javadoc. Deleted build directory from svn. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@103 83d24430-9974-4f80-8418-2cc3294053b9 --- build/javadoc/allclasses-frame.html | 70 - build/javadoc/allclasses-noframe.html | 70 - build/javadoc/constant-values.html | 142 -- build/javadoc/deprecated-list.html | 142 -- build/javadoc/help-doc.html | 219 --- build/javadoc/index-files/index-1.html | 191 --- build/javadoc/index-files/index-10.html | 156 -- build/javadoc/index-files/index-11.html | 180 --- build/javadoc/index-files/index-12.html | 190 --- build/javadoc/index-files/index-13.html | 153 -- build/javadoc/index-files/index-14.html | 144 -- build/javadoc/index-files/index-15.html | 144 -- build/javadoc/index-files/index-16.html | 186 --- build/javadoc/index-files/index-17.html | 279 ---- build/javadoc/index-files/index-18.html | 144 -- build/javadoc/index-files/index-19.html | 144 -- build/javadoc/index-files/index-2.html | 144 -- build/javadoc/index-files/index-20.html | 159 -- build/javadoc/index-files/index-21.html | 141 -- build/javadoc/index-files/index-22.html | 141 -- build/javadoc/index-files/index-23.html | 141 -- build/javadoc/index-files/index-3.html | 165 -- build/javadoc/index-files/index-4.html | 159 -- build/javadoc/index-files/index-5.html | 147 -- build/javadoc/index-files/index-6.html | 153 -- build/javadoc/index-files/index-7.html | 282 ---- build/javadoc/index-files/index-8.html | 144 -- build/javadoc/index-files/index-9.html | 186 --- build/javadoc/index.html | 37 - build/javadoc/net/java/joglutils/GLJFrame.html | 1323 ---------------- build/javadoc/net/java/joglutils/JPanelDialog.html | 659 -------- .../javadoc/net/java/joglutils/ThreeDS/Chunk.html | 293 ---- build/javadoc/net/java/joglutils/ThreeDS/Face.html | 275 ---- .../net/java/joglutils/ThreeDS/Loader3DS.html | 251 --- .../net/java/joglutils/ThreeDS/Material.html | 383 ----- .../net/java/joglutils/ThreeDS/Model3DS.html | 438 ------ build/javadoc/net/java/joglutils/ThreeDS/Obj.html | 437 ------ build/javadoc/net/java/joglutils/ThreeDS/Vec3.html | 325 ---- .../java/joglutils/ThreeDS/class-use/Chunk.html | 140 -- .../net/java/joglutils/ThreeDS/class-use/Face.html | 176 --- .../joglutils/ThreeDS/class-use/Loader3DS.html | 176 --- .../java/joglutils/ThreeDS/class-use/Material.html | 208 --- .../java/joglutils/ThreeDS/class-use/Model3DS.html | 206 --- .../net/java/joglutils/ThreeDS/class-use/Obj.html | 208 --- .../net/java/joglutils/ThreeDS/class-use/Vec3.html | 206 --- .../net/java/joglutils/ThreeDS/package-frame.html | 44 - .../java/joglutils/ThreeDS/package-summary.html | 178 --- .../net/java/joglutils/ThreeDS/package-tree.html | 149 -- .../net/java/joglutils/ThreeDS/package-use.html | 215 --- .../net/java/joglutils/class-use/GLJFrame.html | 140 -- .../net/java/joglutils/class-use/JPanelDialog.html | 140 -- .../java/joglutils/demos/BasicGLJFrameDemo.html | 249 --- .../net/java/joglutils/demos/FontDrawerDemo.html | 258 --- .../demos/class-use/BasicGLJFrameDemo.html | 140 -- .../joglutils/demos/class-use/FontDrawerDemo.html | 140 -- .../net/java/joglutils/demos/package-frame.html | 34 - .../net/java/joglutils/demos/package-summary.html | 158 -- .../net/java/joglutils/demos/package-tree.html | 149 -- .../net/java/joglutils/demos/package-use.html | 140 -- .../net/java/joglutils/jogltext/FontDrawer.html | 438 ------ .../java/joglutils/jogltext/JogltextException.html | 254 --- .../joglutils/jogltext/class-use/FontDrawer.html | 140 -- .../jogltext/class-use/JogltextException.html | 140 -- .../net/java/joglutils/jogltext/package-frame.html | 43 - .../java/joglutils/jogltext/package-summary.html | 168 -- .../net/java/joglutils/jogltext/package-tree.html | 156 -- .../net/java/joglutils/jogltext/package-use.html | 140 -- .../net/java/joglutils/lighting/ColorButton.html | 524 ------- .../javadoc/net/java/joglutils/lighting/Light.html | 1642 -------------------- .../net/java/joglutils/lighting/LightPanel.html | 414 ----- .../java/joglutils/lighting/LightingException.html | 254 --- .../net/java/joglutils/lighting/Material.html | 818 ---------- .../net/java/joglutils/lighting/MaterialPanel.html | 414 ----- .../joglutils/lighting/class-use/ColorButton.html | 140 -- .../java/joglutils/lighting/class-use/Light.html | 198 --- .../joglutils/lighting/class-use/LightPanel.html | 140 -- .../lighting/class-use/LightingException.html | 381 ----- .../joglutils/lighting/class-use/Material.html | 198 --- .../lighting/class-use/MaterialPanel.html | 140 -- .../net/java/joglutils/lighting/package-frame.html | 51 - .../java/joglutils/lighting/package-summary.html | 184 --- .../net/java/joglutils/lighting/package-tree.html | 174 --- .../net/java/joglutils/lighting/package-use.html | 178 --- .../javadoc/net/java/joglutils/package-frame.html | 34 - .../net/java/joglutils/package-summary.html | 158 -- build/javadoc/net/java/joglutils/package-tree.html | 169 -- build/javadoc/net/java/joglutils/package-use.html | 140 -- build/javadoc/net/java/joglutils/test3ds/Main.html | 251 --- .../net/java/joglutils/test3ds/MyModel.html | 317 ---- .../net/java/joglutils/test3ds/class-use/Main.html | 140 -- .../java/joglutils/test3ds/class-use/MyModel.html | 140 -- .../net/java/joglutils/test3ds/package-frame.html | 34 - .../java/joglutils/test3ds/package-summary.html | 158 -- .../net/java/joglutils/test3ds/package-tree.html | 151 -- .../net/java/joglutils/test3ds/package-use.html | 140 -- build/javadoc/overview-frame.html | 52 - build/javadoc/overview-summary.html | 168 -- build/javadoc/overview-tree.html | 190 --- build/javadoc/package-list | 6 - build/javadoc/resources/inherit.gif | Bin 57 -> 0 bytes build/javadoc/serialized-form.html | 683 -------- build/javadoc/stylesheet.css | 29 - build/lib/swing-layout-1.0.jar | Bin 140545 -> 0 bytes demos/src/jgudemos/BasicGLJFrameDemo.java | 8 +- demos/src/jgudemos/BouncingText3D.java | 78 +- demos/src/jgudemos/FontDrawerDemo.java | 45 +- demos/src/jgudemos/TestRenderer3D.java | 52 +- make/build.xml | 62 +- make/lib/jogl-demos-util.jar | Bin 0 -> 130694 bytes make/lib/swing-layout-1.0.jar | Bin 0 -> 140545 bytes src/net/java/joglutils/GLJFrame.java | 3 +- src/net/java/joglutils/jogltext/FontDrawer.java | 48 +- .../java/joglutils/jogltext/TextRenderer3D.java | 44 +- src/net/java/joglutils/lighting/Light.java | 182 +-- src/net/java/joglutils/lighting/Material.java | 60 +- .../model/examples/DisplayListRenderer.java | 106 +- .../java/joglutils/model/examples/ModelTest.java | 55 +- .../joglutils/model/loader/WaveFrontLoader.java | 2 +- .../java/joglutils/msg/actions/GLRenderAction.java | 24 +- .../joglutils/msg/elements/GLBlendElement.java | 56 +- .../joglutils/msg/elements/GLColorElement.java | 8 +- .../msg/elements/GLCoordinateElement.java | 8 +- .../msg/elements/GLModelMatrixElement.java | 8 +- .../msg/elements/GLProjectionMatrixElement.java | 6 +- .../msg/elements/GLTextureCoordinateElement.java | 8 +- .../joglutils/msg/elements/GLTextureElement.java | 12 +- .../msg/elements/GLViewingMatrixElement.java | 2 +- src/net/java/joglutils/msg/math/Mat4f.java | 20 + src/net/java/joglutils/msg/misc/Shader.java | 59 +- src/net/java/joglutils/msg/nodes/Texture2.java | 5 +- src/net/java/joglutils/msg/nodes/TriangleSet.java | 16 +- src/net/java/joglutils/msg/test/DisplayShelf.java | 3 +- .../joglutils/msg/test/DisplayShelfRenderer.java | 15 +- src/net/java/joglutils/msg/test/Test.java | 227 +-- src/net/java/joglutils/test3ds/Main.java | 33 +- src/net/java/joglutils/test3ds/MyModel.java | 13 +- 136 files changed, 663 insertions(+), 23285 deletions(-) delete mode 100644 build/javadoc/allclasses-frame.html delete mode 100644 build/javadoc/allclasses-noframe.html delete mode 100644 build/javadoc/constant-values.html delete mode 100644 build/javadoc/deprecated-list.html delete mode 100644 build/javadoc/help-doc.html delete mode 100644 build/javadoc/index-files/index-1.html delete mode 100644 build/javadoc/index-files/index-10.html delete mode 100644 build/javadoc/index-files/index-11.html delete mode 100644 build/javadoc/index-files/index-12.html delete mode 100644 build/javadoc/index-files/index-13.html delete mode 100644 build/javadoc/index-files/index-14.html delete mode 100644 build/javadoc/index-files/index-15.html delete mode 100644 build/javadoc/index-files/index-16.html delete mode 100644 build/javadoc/index-files/index-17.html delete mode 100644 build/javadoc/index-files/index-18.html delete mode 100644 build/javadoc/index-files/index-19.html delete mode 100644 build/javadoc/index-files/index-2.html delete mode 100644 build/javadoc/index-files/index-20.html delete mode 100644 build/javadoc/index-files/index-21.html delete mode 100644 build/javadoc/index-files/index-22.html delete mode 100644 build/javadoc/index-files/index-23.html delete mode 100644 build/javadoc/index-files/index-3.html delete mode 100644 build/javadoc/index-files/index-4.html delete mode 100644 build/javadoc/index-files/index-5.html delete mode 100644 build/javadoc/index-files/index-6.html delete mode 100644 build/javadoc/index-files/index-7.html delete mode 100644 build/javadoc/index-files/index-8.html delete mode 100644 build/javadoc/index-files/index-9.html delete mode 100644 build/javadoc/index.html delete mode 100644 build/javadoc/net/java/joglutils/GLJFrame.html delete mode 100644 build/javadoc/net/java/joglutils/JPanelDialog.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Chunk.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Face.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Loader3DS.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Material.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Model3DS.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Obj.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/Vec3.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Chunk.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Face.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Loader3DS.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Material.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Model3DS.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Obj.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/class-use/Vec3.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/ThreeDS/package-use.html delete mode 100644 build/javadoc/net/java/joglutils/class-use/GLJFrame.html delete mode 100644 build/javadoc/net/java/joglutils/class-use/JPanelDialog.html delete mode 100644 build/javadoc/net/java/joglutils/demos/BasicGLJFrameDemo.html delete mode 100644 build/javadoc/net/java/joglutils/demos/FontDrawerDemo.html delete mode 100644 build/javadoc/net/java/joglutils/demos/class-use/BasicGLJFrameDemo.html delete mode 100644 build/javadoc/net/java/joglutils/demos/class-use/FontDrawerDemo.html delete mode 100644 build/javadoc/net/java/joglutils/demos/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/demos/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/demos/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/demos/package-use.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/FontDrawer.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/JogltextException.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/class-use/FontDrawer.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/class-use/JogltextException.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/jogltext/package-use.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/ColorButton.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/Light.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/LightPanel.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/LightingException.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/Material.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/MaterialPanel.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/ColorButton.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/Light.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/LightPanel.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/LightingException.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/Material.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/class-use/MaterialPanel.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/lighting/package-use.html delete mode 100644 build/javadoc/net/java/joglutils/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/package-use.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/Main.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/MyModel.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/class-use/Main.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/class-use/MyModel.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/package-frame.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/package-summary.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/package-tree.html delete mode 100644 build/javadoc/net/java/joglutils/test3ds/package-use.html delete mode 100644 build/javadoc/overview-frame.html delete mode 100644 build/javadoc/overview-summary.html delete mode 100644 build/javadoc/overview-tree.html delete mode 100644 build/javadoc/package-list delete mode 100644 build/javadoc/resources/inherit.gif delete mode 100644 build/javadoc/serialized-form.html delete mode 100644 build/javadoc/stylesheet.css delete mode 100644 build/lib/swing-layout-1.0.jar create mode 100644 make/lib/jogl-demos-util.jar create mode 100644 make/lib/swing-layout-1.0.jar diff --git a/build/javadoc/allclasses-frame.html b/build/javadoc/allclasses-frame.html deleted file mode 100644 index e365d23..0000000 --- a/build/javadoc/allclasses-frame.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - -All Classes - - - - - - - - - - -All Classes -
- - - - - -
BasicGLJFrameDemo -
-Chunk -
-ColorButton -
-Face -
-FontDrawer -
-FontDrawerDemo -
-GLJFrame -
-JogltextException -
-JPanelDialog -
-Light -
-LightingException -
-LightPanel -
-Loader3DS -
-Main -
-Material -
-Material -
-MaterialPanel -
-Model3DS -
-MyModel -
-Obj -
-Vec3 -
-
- - - diff --git a/build/javadoc/allclasses-noframe.html b/build/javadoc/allclasses-noframe.html deleted file mode 100644 index 51eb085..0000000 --- a/build/javadoc/allclasses-noframe.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - -All Classes - - - - - - - - - - -All Classes -
- - - - - -
BasicGLJFrameDemo -
-Chunk -
-ColorButton -
-Face -
-FontDrawer -
-FontDrawerDemo -
-GLJFrame -
-JogltextException -
-JPanelDialog -
-Light -
-LightingException -
-LightPanel -
-Loader3DS -
-Main -
-Material -
-Material -
-MaterialPanel -
-Model3DS -
-MyModel -
-Obj -
-Vec3 -
-
- - - diff --git a/build/javadoc/constant-values.html b/build/javadoc/constant-values.html deleted file mode 100644 index 1559c77..0000000 --- a/build/javadoc/constant-values.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -Constant Field Values - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Constant Field Values

-
-
-Contents - -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/deprecated-list.html b/build/javadoc/deprecated-list.html deleted file mode 100644 index 258f139..0000000 --- a/build/javadoc/deprecated-list.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -Deprecated List - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Deprecated API

-
-
-Contents - -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/help-doc.html b/build/javadoc/help-doc.html deleted file mode 100644 index d2e71a2..0000000 --- a/build/javadoc/help-doc.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - -API Help - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-How This API Document Is Organized

-
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

-Overview

-
- -

-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

-

-Package

-
- -

-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

-
-

-Class/Interface

-
- -

-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
- -

-Annotation Type

-
- -

-Each annotation type has its own separate page with the following sections:

-
- -

-Enum

-
- -

-Each enum has its own separate page with the following sections:

-
-

-Use

-
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-

-Tree (Class Hierarchy)

-
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. -
-

-Deprecated API

-
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-

-Index

-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-

-Prev/Next

-These links take you to the next or previous class, interface, package, or related page.

-Frames/No Frames

-These links show and hide the HTML frames. All pages are available with or without frames. -

-

-Serialized Form

-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. -

-

-Constant Field Values

-The Constant Field Values page lists the static final fields and their values. -

- - -This help file applies to API documentation generated using the standard doclet. - -
-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/index-files/index-1.html b/build/javadoc/index-files/index-1.html deleted file mode 100644 index fd708a9..0000000 --- a/build/javadoc/index-files/index-1.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - -A-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-A

-
-
actionPerformed(ActionEvent) - -Method in class net.java.joglutils.JPanelDialog -
  -
actionPerformed(ActionEvent) - -Method in class net.java.joglutils.lighting.ColorButton -
  -
add(Component) - -Method in class net.java.joglutils.JPanelDialog -
  -
addInputMethodListener(InputMethodListener) - -Method in class net.java.joglutils.GLJFrame -
Adds the specified input method listener to receive input method events from this component and the GLCanvas. -
addKeyListener(KeyListener) - -Method in class net.java.joglutils.GLJFrame -
Adds the specified key listener to receive key events from this component and the GLCanvas. -
addMaterial(Material) - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
addMouseListener(MouseListener) - -Method in class net.java.joglutils.GLJFrame -
Adds the specified mouse listener to receive mouse events from this component and the GLCanvas. -
addMouseMotionListener(MouseMotionListener) - -Method in class net.java.joglutils.GLJFrame -
Adds the specified mouse motion listener to receive mouse motion events from this component and the GLCanvas. -
addMouseWheelListener(MouseWheelListener) - -Method in class net.java.joglutils.GLJFrame -
Adds the specified mouse wheel listener to receive mouse wheel events from this component and the GLCanvas. -
addObject(Obj) - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
apply() - -Method in class net.java.joglutils.lighting.Light -
Applies the settings on this Light to the attached GL Context. -
apply(GL) - -Method in class net.java.joglutils.lighting.Light -
Applies the settings on this Light to the specified OpenGL context, - using the light number stored in the Light. -
apply(GL, int) - -Method in class net.java.joglutils.lighting.Light -
Applies the settings on this Light to the specified OpenGL context, - using the requested light number. -
apply(GL) - -Method in class net.java.joglutils.lighting.Material -
Sets the OpenGL State in the supplied context based on the settings in this Material. -
apply() - -Method in class net.java.joglutils.lighting.Material -
Sets the state on the attached OpenGL Context to match this Material. -
applyGlobalAmbient(Color) - -Method in class net.java.joglutils.lighting.Material -
Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the attached GL context. -
applyGlobalAmbient(GL, Color) - -Static method in class net.java.joglutils.lighting.Material -
Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the specified GL context. -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-10.html b/build/javadoc/index-files/index-10.html deleted file mode 100644 index 38ee06f..0000000 --- a/build/javadoc/index-files/index-10.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - -J-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-J

-
-
JogltextException - Exception in net.java.joglutils.jogltext
 
JogltextException() - -Constructor for exception net.java.joglutils.jogltext.JogltextException -
Creates a new instance of jogltextException -
JogltextException(String) - -Constructor for exception net.java.joglutils.jogltext.JogltextException -
  -
JPanelDialog - Class in net.java.joglutils
This class is a basic encapsulation of a JPanel in a dialog.
JPanelDialog(JPanel) - -Constructor for class net.java.joglutils.JPanelDialog -
Creates a new instance of JPanelDialog -
JPanelDialog(String, JPanel) - -Constructor for class net.java.joglutils.JPanelDialog -
  -
JPanelDialog(Frame, JPanel) - -Constructor for class net.java.joglutils.JPanelDialog -
  -
JPanelDialog(Frame, String, JPanel) - -Constructor for class net.java.joglutils.JPanelDialog -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-11.html b/build/javadoc/index-files/index-11.html deleted file mode 100644 index 2f1497f..0000000 --- a/build/javadoc/index-files/index-11.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - -L-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-L

-
-
length - -Variable in class net.java.joglutils.ThreeDS.Chunk -
  -
Light - Class in net.java.joglutils.lighting
This class encapsulates the settings for an OpenGL light.
Light() - -Constructor for class net.java.joglutils.lighting.Light -
Creates a new instance of Light with the default settings. -
Light(GL) - -Constructor for class net.java.joglutils.lighting.Light -
Creates a new instance of Light with default settings attached to the specified GL Context -
Light(GL, int) - -Constructor for class net.java.joglutils.lighting.Light -
Creates a new instance of Light with default settings attached to the specified GL Context with an explicit light number -
LightingException - Exception in net.java.joglutils.lighting
 
LightingException() - -Constructor for exception net.java.joglutils.lighting.LightingException -
Creates a new instance of LightingException -
LightingException(String) - -Constructor for exception net.java.joglutils.lighting.LightingException -
  -
LightPanel - Class in net.java.joglutils.lighting
 
LightPanel() - -Constructor for class net.java.joglutils.lighting.LightPanel -
Creates new form LightPanel -
LightPanel(Light) - -Constructor for class net.java.joglutils.lighting.LightPanel -
  -
lightToPanel(Light) - -Method in class net.java.joglutils.lighting.LightPanel -
  -
load(GLAutoDrawable, String) - -Method in class net.java.joglutils.test3ds.MyModel -
  -
load(Model3DS, String) - -Method in class net.java.joglutils.ThreeDS.Loader3DS -
  -
load(String) - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
loader - -Variable in class net.java.joglutils.ThreeDS.Model3DS -
  -
Loader3DS - Class in net.java.joglutils.ThreeDS
 
Loader3DS() - -Constructor for class net.java.joglutils.ThreeDS.Loader3DS -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-12.html b/build/javadoc/index-files/index-12.html deleted file mode 100644 index 105db42..0000000 --- a/build/javadoc/index-files/index-12.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - -M-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-M

-
-
main(String[]) - -Static method in class net.java.joglutils.demos.BasicGLJFrameDemo -
  -
main(String[]) - -Static method in class net.java.joglutils.demos.FontDrawerDemo -
Generates GLJFrame - Generates a GLJFrame with a FontDrawer demo. -
Main - Class in net.java.joglutils.test3ds
 
Main() - -Constructor for class net.java.joglutils.test3ds.Main -
Creates a new instance of Main -
main(String[]) - -Static method in class net.java.joglutils.test3ds.Main -
  -
makeDirectional() - -Method in class net.java.joglutils.lighting.Light -
Sets this Light so that the light seems to be infinitely far away in terms of some of the calculations. -
Material - Class in net.java.joglutils.lighting
This class encapsulates OpenGL material settings in an object-oriented interface.
Material() - -Constructor for class net.java.joglutils.lighting.Material -
Creates a new instance of Material from the OpenGL default material settings -
Material(GL, int) - -Constructor for class net.java.joglutils.lighting.Material -
Creates a new instance of material, with the specified GL context attached. -
Material(GL) - -Constructor for class net.java.joglutils.lighting.Material -
Creates a new instance of material, with the specified GL context attached. -
Material - Class in net.java.joglutils.ThreeDS
 
Material() - -Constructor for class net.java.joglutils.ThreeDS.Material -
  -
materialID - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
MaterialPanel - Class in net.java.joglutils.lighting
 
MaterialPanel() - -Constructor for class net.java.joglutils.lighting.MaterialPanel -
Creates new form MaterialPanel -
MaterialPanel(Material) - -Constructor for class net.java.joglutils.lighting.MaterialPanel -
  -
materials - -Variable in class net.java.joglutils.ThreeDS.Model3DS -
  -
matToPanel(Material) - -Method in class net.java.joglutils.lighting.MaterialPanel -
  -
maxNumberOfLightsInGL(GL) - -Static method in class net.java.joglutils.lighting.Light -
Determines the maximum number of lights in the specified GL context -
Model3DS - Class in net.java.joglutils.ThreeDS
 
Model3DS() - -Constructor for class net.java.joglutils.ThreeDS.Model3DS -
  -
MyModel - Class in net.java.joglutils.test3ds
 
MyModel() - -Constructor for class net.java.joglutils.test3ds.MyModel -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-13.html b/build/javadoc/index-files/index-13.html deleted file mode 100644 index 86d691d..0000000 --- a/build/javadoc/index-files/index-13.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - -N-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-N

-
-
net.java.joglutils - package net.java.joglutils
 
net.java.joglutils.demos - package net.java.joglutils.demos
 
net.java.joglutils.jogltext - package net.java.joglutils.jogltext
 
net.java.joglutils.lighting - package net.java.joglutils.lighting
 
net.java.joglutils.test3ds - package net.java.joglutils.test3ds
 
net.java.joglutils.ThreeDS - package net.java.joglutils.ThreeDS
 
normals - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
numOfFaces - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
numOfVerts - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
numTexVertex - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
numToID(int) - -Static method in class net.java.joglutils.lighting.Light -
Determines the OpenGL ID for the specified light number -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-14.html b/build/javadoc/index-files/index-14.html deleted file mode 100644 index 619d521..0000000 --- a/build/javadoc/index-files/index-14.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -O-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-O

-
-
Obj - Class in net.java.joglutils.ThreeDS
 
Obj() - -Constructor for class net.java.joglutils.ThreeDS.Obj -
  -
objects - -Variable in class net.java.joglutils.ThreeDS.Model3DS -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-15.html b/build/javadoc/index-files/index-15.html deleted file mode 100644 index cc26622..0000000 --- a/build/javadoc/index-files/index-15.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -P-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-P

-
-
panelToLight(Light) - -Method in class net.java.joglutils.lighting.LightPanel -
  -
panelToMat(Material) - -Method in class net.java.joglutils.lighting.MaterialPanel -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-16.html b/build/javadoc/index-files/index-16.html deleted file mode 100644 index ddf0a23..0000000 --- a/build/javadoc/index-files/index-16.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - -R-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-R

-
-
removeAnimator() - -Method in class net.java.joglutils.GLJFrame -
Stops and removes the Animator. -
removeInputMethodListener(InputMethodListener) - -Method in class net.java.joglutils.GLJFrame -
Removes the specified input method listener so that it no longer receives input method events from this component and the GLCanvas. -
removeKeyListener(KeyListener) - -Method in class net.java.joglutils.GLJFrame -
Removes the specified key listener so that it no longer receives key events from this component and the GLCanvas. -
removeMouseListener(MouseListener) - -Method in class net.java.joglutils.GLJFrame -
Removes the specified mouse listener so that it no longer receives mouse events from this component and the GLCanvas. -
removeMouseMotionListener(MouseMotionListener) - -Method in class net.java.joglutils.GLJFrame -
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component and the GLCanvas. -
removeMouseWheelListener(MouseWheelListener) - -Method in class net.java.joglutils.GLJFrame -
Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component and the GLCanvas. -
removePhongShader() - -Static method in class net.java.joglutils.lighting.Light -
Removes the Phong Shader program from the current GL Context -
removePhongShader(GL) - -Static method in class net.java.joglutils.lighting.Light -
Removes the Phong Shader program from the specified GL Context -
render(GLAutoDrawable) - -Method in class net.java.joglutils.test3ds.MyModel -
  -
repaint() - -Method in class net.java.joglutils.GLJFrame -
Repaint the JFrame and render the GLCanvas if no animator is present. -
retrieve() - -Method in class net.java.joglutils.lighting.Light -
Reconfigure the settings for this Light from the state of the attached - GL Context. -
retrieve(GL) - -Method in class net.java.joglutils.lighting.Light -
Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the light number stored in the Light. -
retrieve(GL, int) - -Method in class net.java.joglutils.lighting.Light -
Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the requested light number. -
retrieve(GL) - -Method in class net.java.joglutils.lighting.Material -
Sets the settings in this Material from the specified OpenGL context's state. -
retrieve() - -Method in class net.java.joglutils.lighting.Material -
Sets this Material object from the attached OpenGL state. -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-17.html b/build/javadoc/index-files/index-17.html deleted file mode 100644 index 3f0cc34..0000000 --- a/build/javadoc/index-files/index-17.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - -S-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-S

-
-
setAmbient(Color) - -Method in class net.java.joglutils.lighting.Light -
Sets the ambient (light "filling the room") color for this Light. -
setAmbient(Color) - -Method in class net.java.joglutils.lighting.Material -
Sets this object's ambient color from an input Color. -
setAnimator(Animator) - -Method in class net.java.joglutils.GLJFrame -
Specifies an Animator for updating the GLCanvas, and starts it. -
setAnimator(Animator, boolean) - -Method in class net.java.joglutils.GLJFrame -
Specifies an Animator for updating the GLCanvas, and optionally starts it. -
setAttachedGL(GL) - -Method in class net.java.joglutils.lighting.Light -
Attached the specified OpenGL context to this object -
setAttachedGL(GL) - -Method in class net.java.joglutils.lighting.Material -
Attached the specified OpenGL context to this object -
setButtonTexts(String, String) - -Method in class net.java.joglutils.JPanelDialog -
  -
setColor(Color) - -Method in class net.java.joglutils.lighting.ColorButton -
  -
setConstantAttenuation(float) - -Method in class net.java.joglutils.lighting.Light -
Sets the coefficient of the constant term in the attenuation equation for this Light. -
setDepth(float) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
setDiffuse(Color) - -Method in class net.java.joglutils.lighting.Light -
Sets the diffuse ("dull reflection") color for this Light. -
setDiffuse(Color) - -Method in class net.java.joglutils.lighting.Material -
Sets this object's diffuse color from an input Color. -
setEmissive(Color) - -Method in class net.java.joglutils.lighting.Material -
Sets this object's emissive color from an input Color. -
setFace(int) - -Method in class net.java.joglutils.lighting.Material -
Specifies the face for subsequent apply method calls to apply and retrieve the material settings. -
setFill(boolean) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
setFlatNormals(boolean) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
setFont(Font) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
setFullscreen(boolean) - -Method in class net.java.joglutils.GLJFrame -
Sets the fullscreen status of this window. -
setGL(GL) - -Method in class net.java.joglutils.GLJFrame -
Sets the GL pipeline for the canvas in this GLJPane. -
setGLCapabilities(GLCapabilities) - -Method in class net.java.joglutils.GLJFrame -
Rebuilds the GLCanvas with the specified capbilities. -
setGLEventListener(GLEventListener) - -Method in class net.java.joglutils.GLJFrame -
Sets the event listener attached to the GLcanvas. -
setLightID(int) - -Method in class net.java.joglutils.lighting.Light -
Sets the OpenGL light to use in subsequent method calls from a GL identifier -
setLightNumber(int) - -Method in class net.java.joglutils.lighting.Light -
Sets the number of the OpenGL light to use in subsequent method calls -
setLightPosition(float[]) - -Method in class net.java.joglutils.lighting.Light -
Specifies the direction vector for this Light. -
setLightPosition(float, float, float) - -Method in class net.java.joglutils.lighting.Light -
Specifies the direction vector for this Light. -
setLightW(float) - -Method in class net.java.joglutils.lighting.Light -
Specifies the w-component to be used for this Light. -
setLinearAttenuation(float) - -Method in class net.java.joglutils.lighting.Light -
Sets the coefficient of the linear term in the attenuation equation for this Light. -
setPhongColorMaterial(boolean, boolean) - -Method in class net.java.joglutils.lighting.Light -
Sets whether or not the opengl color should be used for the phong color shader -
setPhongShaded(boolean) - -Method in class net.java.joglutils.lighting.Light -
Sets if phong per-fragment shading (as opposed to fixed-functionality per-vertex shading) is to be used with this Light. -
setQuadraticAttenuation(float) - -Method in class net.java.joglutils.lighting.Light -
Sets the coefficient of the quadratic term in the attenuation equation for this Light. -
setShininess(float) - -Method in class net.java.joglutils.lighting.Material -
Sets the shininess for this Material. -
setSize(int, int) - -Method in class net.java.joglutils.GLJFrame -
Resizes this GLJFrame to match a GLCanvas of the specified size. -
setSize(Dimension) - -Method in class net.java.joglutils.GLJFrame -
Resizes this GLJFrame to match a GLCanvas of the specified size. -
setSpecular(Color) - -Method in class net.java.joglutils.lighting.Light -
Sets the specular ("shiny reflection") color for this Light. -
setSpecular(Color) - -Method in class net.java.joglutils.lighting.Material -
Sets this object's specular color from an input Color. -
setSpotCutoff(float) - -Method in class net.java.joglutils.lighting.Light -
Sets the spotlight cutoff angle for this Light. -
setSpotDirection(float[]) - -Method in class net.java.joglutils.lighting.Light -
Sets the spotlight direction for this Light. -
setSpotDirection(float, float, float) - -Method in class net.java.joglutils.lighting.Light -
Sets the spotlight direction for this Light. -
setSpotExponent(float) - -Method in class net.java.joglutils.lighting.Light -
Sets the spotlight exponent in this Light. -
showAsModal() - -Method in class net.java.joglutils.JPanelDialog -
Shows this dialog as a modal dialog -
showModalDialog(JPanel) - -Static method in class net.java.joglutils.JPanelDialog -
  -
showModalDialog(JPanel, String) - -Static method in class net.java.joglutils.JPanelDialog -
  -
showModalDialog(Frame, JPanel) - -Static method in class net.java.joglutils.JPanelDialog -
  -
showModalDialog(Frame, JPanel, String) - -Static method in class net.java.joglutils.JPanelDialog -
  -
strFile - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
strName - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
strName - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-18.html b/build/javadoc/index-files/index-18.html deleted file mode 100644 index 83adea4..0000000 --- a/build/javadoc/index-files/index-18.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -T-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-T

-
-
texureId - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
texVerts - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-19.html b/build/javadoc/index-files/index-19.html deleted file mode 100644 index 8af1d47..0000000 --- a/build/javadoc/index-files/index-19.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -U-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-U

-
-
uOffset - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
uTile - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-2.html b/build/javadoc/index-files/index-2.html deleted file mode 100644 index 9c09922..0000000 --- a/build/javadoc/index-files/index-2.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -B-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-B

-
-
BasicGLJFrameDemo - Class in net.java.joglutils.demos
 
BasicGLJFrameDemo() - -Constructor for class net.java.joglutils.demos.BasicGLJFrameDemo -
  -
bytesRead - -Variable in class net.java.joglutils.ThreeDS.Chunk -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-20.html b/build/javadoc/index-files/index-20.html deleted file mode 100644 index 1a86c3f..0000000 --- a/build/javadoc/index-files/index-20.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -V-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-V

-
-
Vec3 - Class in net.java.joglutils.ThreeDS
 
Vec3() - -Constructor for class net.java.joglutils.ThreeDS.Vec3 -
  -
Vec3(float, float, float) - -Constructor for class net.java.joglutils.ThreeDS.Vec3 -
  -
Vec3(Vec3) - -Constructor for class net.java.joglutils.ThreeDS.Vec3 -
  -
vertIndex - -Variable in class net.java.joglutils.ThreeDS.Face -
  -
verts - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
vOffset - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
vTile - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-21.html b/build/javadoc/index-files/index-21.html deleted file mode 100644 index 915332a..0000000 --- a/build/javadoc/index-files/index-21.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - -X-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-X

-
-
x - -Variable in class net.java.joglutils.ThreeDS.Vec3 -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-22.html b/build/javadoc/index-files/index-22.html deleted file mode 100644 index c5d568c..0000000 --- a/build/javadoc/index-files/index-22.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - -Y-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-Y

-
-
y - -Variable in class net.java.joglutils.ThreeDS.Vec3 -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-23.html b/build/javadoc/index-files/index-23.html deleted file mode 100644 index 2eb8c25..0000000 --- a/build/javadoc/index-files/index-23.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - -Z-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-Z

-
-
z - -Variable in class net.java.joglutils.ThreeDS.Vec3 -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-3.html b/build/javadoc/index-files/index-3.html deleted file mode 100644 index e34dbea..0000000 --- a/build/javadoc/index-files/index-3.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - -C-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-C

-
-
Chunk - Class in net.java.joglutils.ThreeDS
 
Chunk() - -Constructor for class net.java.joglutils.ThreeDS.Chunk -
  -
clearInputListeners() - -Method in class net.java.joglutils.GLJFrame -
Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas. -
color - -Variable in class net.java.joglutils.ThreeDS.Material -
  -
ColorButton - Class in net.java.joglutils.lighting
 
ColorButton() - -Constructor for class net.java.joglutils.lighting.ColorButton -
Creates a new instance of GlobalAmbientButton -
ColorButton(Action) - -Constructor for class net.java.joglutils.lighting.ColorButton -
  -
ColorButton(Icon) - -Constructor for class net.java.joglutils.lighting.ColorButton -
  -
ColorButton(String) - -Constructor for class net.java.joglutils.lighting.ColorButton -
  -
ColorButton(String, Icon) - -Constructor for class net.java.joglutils.lighting.ColorButton -
  -
coordIndex - -Variable in class net.java.joglutils.ThreeDS.Face -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-4.html b/build/javadoc/index-files/index-4.html deleted file mode 100644 index 7a33ad4..0000000 --- a/build/javadoc/index-files/index-4.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -D-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-D

-
-
detachGL() - -Method in class net.java.joglutils.lighting.Light -
Detaches the currently attached OpenGL context from this object -
detachGL() - -Method in class net.java.joglutils.lighting.Material -
Detaches the currently attached OpenGL context from this object -
disable() - -Method in class net.java.joglutils.lighting.Light -
Disables this Light on the attached GL Context. -
disable(GL) - -Method in class net.java.joglutils.lighting.Light -
Disables the light number stored in this Light on the specified OpenGL Context. -
disable(GL, int) - -Method in class net.java.joglutils.lighting.Light -
Disables the requested light on the specified OpenGL Context. -
drawString(String, GLU, GL) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
drawString(String, GLU, GL, float, float, float) - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-5.html b/build/javadoc/index-files/index-5.html deleted file mode 100644 index 22db572..0000000 --- a/build/javadoc/index-files/index-5.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -E-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-E

-
-
enable() - -Method in class net.java.joglutils.lighting.Light -
Enables this Light on the attached GL Context. -
enable(GL) - -Method in class net.java.joglutils.lighting.Light -
Enables the light number stored in this Light on the specified OpenGL Context. -
enable(GL, int) - -Method in class net.java.joglutils.lighting.Light -
Enables the requested light on the specified OpenGL Context. -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-6.html b/build/javadoc/index-files/index-6.html deleted file mode 100644 index 8d76ca6..0000000 --- a/build/javadoc/index-files/index-6.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - -F-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-F

-
-
Face - Class in net.java.joglutils.ThreeDS
 
Face() - -Constructor for class net.java.joglutils.ThreeDS.Face -
  -
faces - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
finalize() - -Method in class net.java.joglutils.lighting.Light -
  -
FontDrawer - Class in net.java.joglutils.jogltext
This class renders a TrueType Font into OpenGL
FontDrawer(Font) - -Constructor for class net.java.joglutils.jogltext.FontDrawer -
  -
FontDrawerDemo - Class in net.java.joglutils.demos
This Demo application uses the Lighting class and the FontDrawer class to render 3D text into a GLJFrame.
FontDrawerDemo() - -Constructor for class net.java.joglutils.demos.FontDrawerDemo -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-7.html b/build/javadoc/index-files/index-7.html deleted file mode 100644 index d3ebeaf..0000000 --- a/build/javadoc/index-files/index-7.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - -G-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-G

-
-
generateAnimator() - -Method in class net.java.joglutils.GLJFrame -
Generates a new Animator for updating the GLCanvas, and starts it. -
getAmbient() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the ambient color for this Light. -
getAmbient() - -Method in class net.java.joglutils.lighting.Material -
This retrieves the ambient color from this Material. -
getAnimator() - -Method in class net.java.joglutils.GLJFrame -
Retrieves the attached Animator connected to the GLCanvas. -
getAttachedGL() - -Method in class net.java.joglutils.lighting.Light -
Returns the OpenGL context attached to this Lighting object -
getAttachedGL() - -Method in class net.java.joglutils.lighting.Material -
Returns the OpenGL context attached to this Lighting object -
getAutoDrawable() - -Method in class net.java.joglutils.GLJFrame -
Retrieves a GLAutoDrawable view of the associated GLCanvas -
getColor() - -Method in class net.java.joglutils.lighting.ColorButton -
  -
getConstantAttenuation() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the coefficient of the constant term in the attenuation equation for this Light. -
getContext() - -Method in class net.java.joglutils.GLJFrame -
Retrieves the GLContext associated with the GLCanvas on this GLJFrame -
getDepth() - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
getDiffuse() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the diffuse color for this Light. -
getDiffuse() - -Method in class net.java.joglutils.lighting.Material -
This retrieves the diffuse color from this Material. -
getEmissive() - -Method in class net.java.joglutils.lighting.Material -
This retrieves the emissive color from this Material. -
getFace() - -Method in class net.java.joglutils.lighting.Material -
Determines what face the material settings are applied to or retrieved from. -
getFont() - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
getGL() - -Method in class net.java.joglutils.GLJFrame -
Gets the GL pipeline for the canvas in this GLJPane. -
getGLCapabilities() - -Method in class net.java.joglutils.GLJFrame -
The GLCapabilities used with the GLCanvas. -
getGLEventListener() - -Method in class net.java.joglutils.GLJFrame -
Retrieves the event listener for the GLJFrame -
getGLLightIdentifier() - -Method in class net.java.joglutils.lighting.Light -
Determines the OpenGL light identifier associated with this Light. -
getGlobalAmbient() - -Method in class net.java.joglutils.lighting.Material -
Retrieves the GL_LIGHT_MODEL_AMBIENT color from the attached OpenGL context. -
getGlobalAmbient(GL) - -Static method in class net.java.joglutils.lighting.Material -
Retrieves the GL_LIGHT_MODEL_AMBIENT color from a specified OpenGL context. -
getLightNumber() - -Method in class net.java.joglutils.lighting.Light -
Determines the number of the light associated with this Light. -
getLightPosition() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the direction vector for this light. -
getLightW() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the w-component of this Light. -
getLinearAttenuation() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the coefficient of the linear term in the attenuation equation for this Light. -
getMaterial(int) - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
getNumberOfMaterials() - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
getNumberOfObjects() - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
getObject(int) - -Method in class net.java.joglutils.ThreeDS.Model3DS -
  -
getQuadraticAttenuation() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the coefficient of the quadratic term in the attenuation equation for this Light. -
getShininess() - -Method in class net.java.joglutils.lighting.Material -
Retrieves the shininess from this Material. -
getSpecular() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the specular color for this Light. -
getSpecular() - -Method in class net.java.joglutils.lighting.Material -
Retrieves the specular color from this Material. -
getSpotCutoff() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the spotlight cutoff angle for this Light. -
getSpotDirection() - -Method in class net.java.joglutils.lighting.Light -
Retrieves a vector indicating the spotlight direction used in this Light. -
getSpotExponent() - -Method in class net.java.joglutils.lighting.Light -
Retrieves the spotlight exponent in this Light. -
GLJFrame - Class in net.java.joglutils
A JFrame containing a heavyweight GLCanvas with a single attached GLEventListener.
GLJFrame(GLEventListener) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener, GLCapabilities, GLCapabilitiesChooser, GLContext) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener, GLCapabilities) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener, GLCapabilities, GLCapabilitiesChooser) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(GLEventListener, GLContext) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(GLEventListener, GLCapabilities) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(GLEventListener, int, int) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener, int, int) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(GLEventListener, boolean) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
GLJFrame(String, GLEventListener, boolean) - -Constructor for class net.java.joglutils.GLJFrame -
Creates new form GLJFrame -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-8.html b/build/javadoc/index-files/index-8.html deleted file mode 100644 index 33ff0f9..0000000 --- a/build/javadoc/index-files/index-8.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -H-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-H

-
-
hasFreeLights(GL) - -Static method in class net.java.joglutils.lighting.Light -
Determines if there is space in a specified OpenGL context for another Light to be attached -
hasTexture - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index-files/index-9.html b/build/javadoc/index-files/index-9.html deleted file mode 100644 index c6b8d60..0000000 --- a/build/javadoc/index-files/index-9.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - -I-Index - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
-

-I

-
-
id - -Variable in class net.java.joglutils.ThreeDS.Chunk -
  -
idToNum(int) - -Static method in class net.java.joglutils.lighting.Light -
Converts the specified OpenGL light ID number to a number -
indices - -Variable in class net.java.joglutils.ThreeDS.Obj -
  -
initializePhongShader() - -Static method in class net.java.joglutils.lighting.Light -
Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading) on the current OpenGL context. -
initializePhongShader(GL) - -Static method in class net.java.joglutils.lighting.Light -
Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading). -
isAccepted() - -Method in class net.java.joglutils.JPanelDialog -
Checks if accept option was chosen -
isAmbientPhongColorMaterial() - -Method in class net.java.joglutils.lighting.Light -
Determines if color material is used for ambient in the Phong shader -
isAnimated() - -Method in class net.java.joglutils.GLJFrame -
Determines if this GLJFrame is running on an Animator. -
isAttached() - -Method in class net.java.joglutils.lighting.Light -
Determines if an OpenGL context is attached. -
isAttached() - -Method in class net.java.joglutils.lighting.Material -
Determines if an OpenGL context is attached. -
isDiffusePhongColorMaterial() - -Method in class net.java.joglutils.lighting.Light -
Determines if color material is used for diffuse in the Phong shader -
isFill() - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
isFlatNormals() - -Method in class net.java.joglutils.jogltext.FontDrawer -
  -
isFullscreen() - -Method in class net.java.joglutils.GLJFrame -
Determines if the Frame is the Full-Screen Exclusive Mode window. -
isLoaded() - -Method in class net.java.joglutils.test3ds.MyModel -
  -
isPhongShaded() - -Method in class net.java.joglutils.lighting.Light -
Tells if this Light is using Phong shading -
-
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J L M N O P R S T U V X Y Z
- - - diff --git a/build/javadoc/index.html b/build/javadoc/index.html deleted file mode 100644 index 549d741..0000000 --- a/build/javadoc/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - -Generated Documentation (Untitled) - - - - - - - - - - - -<H2> -Frame Alert</H2> - -<P> -This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. -<BR> -Link to<A HREF="overview-summary.html">Non-frame version.</A> - - - diff --git a/build/javadoc/net/java/joglutils/GLJFrame.html b/build/javadoc/net/java/joglutils/GLJFrame.html deleted file mode 100644 index 3a0867c..0000000 --- a/build/javadoc/net/java/joglutils/GLJFrame.html +++ /dev/null @@ -1,1323 +0,0 @@ - - - - - - -GLJFrame - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils -
-Class GLJFrame

-
-java.lang.Object
-  extended by java.awt.Component
-      extended by java.awt.Container
-          extended by java.awt.Window
-              extended by java.awt.Frame
-                  extended by javax.swing.JFrame
-                      extended by net.java.joglutils.GLJFrame
-
-
-
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
-
-
-
-
public class GLJFrame
extends JFrame
- - -

-A JFrame containing a heavyweight GLCanvas with a single attached GLEventListener. - Note: the default close operation has been changed to exit rather than dispose. -

- -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
- - - - - - - -
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
- - - - - - - -
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
- - - - - - - -
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
- - - - - - - -
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
GLJFrame(javax.media.opengl.GLEventListener listener) - -
-          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, - boolean fullscreen) - -
-          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, - javax.media.opengl.GLCapabilities capabilities) - -
-          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, - javax.media.opengl.GLContext contextToShareWith) - -
-          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, - int width, - int height) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener, - boolean fullscreen) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener, - javax.media.opengl.GLCapabilities capabilities) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener, - javax.media.opengl.GLCapabilities capabilities, - javax.media.opengl.GLCapabilitiesChooser chooser) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener, - javax.media.opengl.GLCapabilities caps, - javax.media.opengl.GLCapabilitiesChooser chooser, - javax.media.opengl.GLContext contextToShareWith) - -
-          Creates new form GLJFrame
GLJFrame(String title, - javax.media.opengl.GLEventListener listener, - int width, - int height) - -
-          Creates new form GLJFrame
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddInputMethodListener(InputMethodListener l) - -
-          Adds the specified input method listener to receive input method events from this component and the GLCanvas.
- voidaddKeyListener(KeyListener l) - -
-          Adds the specified key listener to receive key events from this component and the GLCanvas.
- voidaddMouseListener(MouseListener l) - -
-          Adds the specified mouse listener to receive mouse events from this component and the GLCanvas.
- voidaddMouseMotionListener(MouseMotionListener l) - -
-          Adds the specified mouse motion listener to receive mouse motion events from this component and the GLCanvas.
- voidaddMouseWheelListener(MouseWheelListener l) - -
-          Adds the specified mouse wheel listener to receive mouse wheel events from this component and the GLCanvas.
- voidclearInputListeners() - -
-          Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas.
- com.sun.opengl.util.AnimatorgenerateAnimator() - -
-          Generates a new Animator for updating the GLCanvas, and starts it.
- com.sun.opengl.util.AnimatorgetAnimator() - -
-          Retrieves the attached Animator connected to the GLCanvas.
- javax.media.opengl.GLAutoDrawablegetAutoDrawable() - -
-          Retrieves a GLAutoDrawable view of the associated GLCanvas
- javax.media.opengl.GLContextgetContext() - -
-          Retrieves the GLContext associated with the GLCanvas on this GLJFrame
- javax.media.opengl.GLgetGL() - -
-          Gets the GL pipeline for the canvas in this GLJPane.
- javax.media.opengl.GLCapabilitiesgetGLCapabilities() - -
-          The GLCapabilities used with the GLCanvas.
- javax.media.opengl.GLEventListenergetGLEventListener() - -
-          Retrieves the event listener for the GLJFrame
- booleanisAnimated() - -
-          Determines if this GLJFrame is running on an Animator.
- booleanisFullscreen() - -
-          Determines if the Frame is the Full-Screen Exclusive Mode window.
- voidremoveAnimator() - -
-          Stops and removes the Animator.
- voidremoveInputMethodListener(InputMethodListener l) - -
-          Removes the specified input method listener so that it no longer receives input method events from this component and the GLCanvas.
- voidremoveKeyListener(KeyListener l) - -
-          Removes the specified key listener so that it no longer receives key events from this component and the GLCanvas.
- voidremoveMouseListener(MouseListener l) - -
-          Removes the specified mouse listener so that it no longer receives mouse events from this component and the GLCanvas.
- voidremoveMouseMotionListener(MouseMotionListener l) - -
-          Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component and the GLCanvas.
- voidremoveMouseWheelListener(MouseWheelListener l) - -
-          Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component and the GLCanvas.
- voidrepaint() - -
-          Repaint the JFrame and render the GLCanvas if no animator is present.
- voidsetAnimator(com.sun.opengl.util.Animator anim) - -
-          Specifies an Animator for updating the GLCanvas, and starts it.
- voidsetAnimator(com.sun.opengl.util.Animator anim, - boolean start) - -
-          Specifies an Animator for updating the GLCanvas, and optionally starts it.
- booleansetFullscreen(boolean fs) - -
-          Sets the fullscreen status of this window.
- voidsetGL(javax.media.opengl.GL gl) - -
-          Sets the GL pipeline for the canvas in this GLJPane.
- voidsetGLCapabilities(javax.media.opengl.GLCapabilities caps) - -
-          Rebuilds the GLCanvas with the specified capbilities.
- voidsetGLEventListener(javax.media.opengl.GLEventListener listener) - -
-          Sets the event listener attached to the GLcanvas.
- voidsetSize(Dimension d) - -
-          Resizes this GLJFrame to match a GLCanvas of the specified size.
- voidsetSize(int width, - int height) - -
-          Resizes this GLJFrame to match a GLCanvas of the specified size.
- - - - - - - -
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
- - - - - - - -
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
- - - - - - - -
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
- - - - - - - -
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-  -

- - - - - - - - -
-Constructor Detail
- -

-GLJFrame

-
-public GLJFrame(javax.media.opengl.GLEventListener listener)
-
-
Creates new form GLJFrame -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener)
-
-
Creates new form GLJFrame -

-

-
Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener,
-                javax.media.opengl.GLCapabilities caps,
-                javax.media.opengl.GLCapabilitiesChooser chooser,
-                javax.media.opengl.GLContext contextToShareWith)
-
-
Creates new form GLJFrame -

-

-
Parameters:
caps - the GLCapabilities to request for the GLCanvas
chooser - the capabilities chooser to use in creating the GLCanvas on this frame
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
contextToShareWith - the context to share with
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener,
-                javax.media.opengl.GLCapabilities capabilities)
-
-
Creates new form GLJFrame -

-

-
Parameters:
title - title for the window
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener,
-                javax.media.opengl.GLCapabilities capabilities,
-                javax.media.opengl.GLCapabilitiesChooser chooser)
-
-
Creates new form GLJFrame -

-

-
Parameters:
title - title for the window
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas
chooser - the capabilities chooser to use in creating the GLCanvas on this frame
-
-
- -

-GLJFrame

-
-public GLJFrame(javax.media.opengl.GLEventListener listener,
-                javax.media.opengl.GLContext contextToShareWith)
-
-
Creates new form GLJFrame -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
contextToShareWith - the context to share with
See Also:
javax.media.opengl.GLCanvas#javax.media.opengl.GLCanvas(javax.media.opengl.GLCapabilities,javax.media.opengl.GLCapabilitiesChooser,javax.media.opengl.GLContext,javax.media.opengl.GraphicsDevice)
-
-
- -

-GLJFrame

-
-public GLJFrame(javax.media.opengl.GLEventListener listener,
-                javax.media.opengl.GLCapabilities capabilities)
-
-
Creates new form GLJFrame -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas
-
-
- -

-GLJFrame

-
-public GLJFrame(javax.media.opengl.GLEventListener listener,
-                int width,
-                int height)
-
-
Creates new form GLJFrame -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
width - the horizontal size for the GLCanvas in pixels
height - the vertical size for the GLCanvas in pixels
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener,
-                int width,
-                int height)
-
-
Creates new form GLJFrame -

-

-
Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
width - the horizontal size for the GLCanvas in pixels
height - the vertical size for the GLCanvas in pixels
-
-
- -

-GLJFrame

-
-public GLJFrame(javax.media.opengl.GLEventListener listener,
-                boolean fullscreen)
-
-
Creates new form GLJFrame -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
fullscreen - if true, this window is generated in fullscreen mode
-
-
- -

-GLJFrame

-
-public GLJFrame(String title,
-                javax.media.opengl.GLEventListener listener,
-                boolean fullscreen)
-
-
Creates new form GLJFrame -

-

-
Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
fullscreen - if true, this window is generated in fullscreen mode
-
- - - - - - - - -
-Method Detail
- -

-setGLEventListener

-
-public void setGLEventListener(javax.media.opengl.GLEventListener listener)
-
-
Sets the event listener attached to the GLcanvas. Note that this method does not repaint this component, so it will not immediately update. -

-

-
Parameters:
listener - the GLEventListener to attach to the GLCanvas
-
-
-
- -

-getGLEventListener

-
-public javax.media.opengl.GLEventListener getGLEventListener()
-
-
Retrieves the event listener for the GLJFrame -

-

- -
Returns:
the GLEventListener associated with the GLCanvas
-
-
-
- -

-setFullscreen

-
-public boolean setFullscreen(boolean fs)
-
-
Sets the fullscreen status of this window. If full screen exclusive mode is not supported, fullscreen is emulated by swing (see Full-Screen Exclusive Mode Tutorial ). If fullscreen is to be invoked under Windows, it is recommended that the VM be run with -Dsun.java2d.noddraw=true -

-

-
Parameters:
fs - the mode to set this window to - true for full screen, false for windowed mode -
Returns:
true if full screen exclusive mode is supported, false if not.
-
-
-
- -

-setSize

-
-public void setSize(int width,
-                    int height)
-
-
Resizes this GLJFrame to match a GLCanvas of the specified size. This has no effect if fullscreen mode is active. -

-

-
Overrides:
setSize in class Component
-
-
-
Parameters:
width - the new horizontal size for the GLCanvass in pixels
height - the new vertical size for the GLCanvass in pixels
-
-
-
- -

-setSize

-
-public void setSize(Dimension d)
-
-
Resizes this GLJFrame to match a GLCanvas of the specified size. This has no effect if fullscreen mode is active. -

-

-
Overrides:
setSize in class Component
-
-
-
Parameters:
d - the new size for the GLCanvass in pixels
-
-
-
- -

-isFullscreen

-
-public boolean isFullscreen()
-
-
Determines if the Frame is the Full-Screen Exclusive Mode window. -

-

- -
Returns:
true if this window is in fullscreen mode
-
-
-
- -

-getGLCapabilities

-
-public javax.media.opengl.GLCapabilities getGLCapabilities()
-
-
The GLCapabilities used with the GLCanvas. -

-

- -
Returns:
a copy of the capabilities used to generate the attached GLCanvas
-
-
-
- -

-setGLCapabilities

-
-public void setGLCapabilities(javax.media.opengl.GLCapabilities caps)
-
-
Rebuilds the GLCanvas with the specified capbilities. Will dispose and re-create the JFrame and GLCanvas with the new capabilities. -

-

-
Parameters:
caps - the capabilities to be copied into this GLJFrame
-
-
-
- -

-repaint

-
-public void repaint()
-
-
Repaint the JFrame and render the GLCanvas if no animator is present. If animator is attached and running, only repaints the JFrame. -

-

-
Overrides:
repaint in class Component
-
-
-
-
-
-
- -

-clearInputListeners

-
-public void clearInputListeners()
-
-
Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas. -

-

-
-
-
-
- -

-generateAnimator

-
-public com.sun.opengl.util.Animator generateAnimator()
-
-
Generates a new Animator for updating the GLCanvas, and starts it. -

-

- -
Returns:
the generated Animator
-
-
-
- -

-getAnimator

-
-public com.sun.opengl.util.Animator getAnimator()
-
-
Retrieves the attached Animator connected to the GLCanvas. -

-

- -
Returns:
The Animator attached to this, or null if there is no Animator
-
-
-
- -

-setAnimator

-
-public void setAnimator(com.sun.opengl.util.Animator anim)
-
-
Specifies an Animator for updating the GLCanvas, and starts it. -

-

-
Parameters:
anim - Animator to use to animate the GLCanvas
-
-
-
- -

-setAnimator

-
-public void setAnimator(com.sun.opengl.util.Animator anim,
-                        boolean start)
-
-
Specifies an Animator for updating the GLCanvas, and optionally starts it. -

-

-
Parameters:
anim - Animator to use to animate the GLCanvas
start - starts the animator if true, just sets it if not
-
-
-
- -

-removeAnimator

-
-public void removeAnimator()
-
-
Stops and removes the Animator. -

-

-
-
-
-
- -

-isAnimated

-
-public boolean isAnimated()
-
-
Determines if this GLJFrame is running on an Animator. -

-

- -
Returns:
true if the GLJFrame has an attached animator.
-
-
-
- -

-removeKeyListener

-
-public void removeKeyListener(KeyListener l)
-
-
Removes the specified key listener so that it no longer receives key events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
removeKeyListener in class Component
-
-
-
Parameters:
l - the key listener.
-
-
-
- -

-addKeyListener

-
-public void addKeyListener(KeyListener l)
-
-
Adds the specified key listener to receive key events from this component and the GLCanvas. If l is null, no exception is thrown and no action is performed. -

-

-
Overrides:
addKeyListener in class Component
-
-
-
Parameters:
l - the key listener.
-
-
-
- -

-removeMouseListener

-
-public void removeMouseListener(MouseListener l)
-
-
Removes the specified mouse listener so that it no longer receives mouse events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
removeMouseListener in class Component
-
-
-
Parameters:
l - the mouse listener
-
-
-
- -

-addMouseListener

-
-public void addMouseListener(MouseListener l)
-
-
Adds the specified mouse listener to receive mouse events from this component and the GLCanvas. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
addMouseListener in class Component
-
-
-
Parameters:
l - the mouse listener
-
-
-
- -

-removeMouseWheelListener

-
-public void removeMouseWheelListener(MouseWheelListener l)
-
-
Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. If l is null, no exception is thrown and no action is performed. -

-

-
Overrides:
removeMouseWheelListener in class Component
-
-
-
Parameters:
l - the mouse wheel listener
-
-
-
- -

-removeMouseMotionListener

-
-public void removeMouseMotionListener(MouseMotionListener l)
-
-
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
removeMouseMotionListener in class Component
-
-
-
Parameters:
l - the mouse motion listener.
-
-
-
- -

-addMouseWheelListener

-
-public void addMouseWheelListener(MouseWheelListener l)
-
-
Adds the specified mouse wheel listener to receive mouse wheel events from this component and the GLCanvas. - - For information on how mouse wheel events are dispatched, see the class description for MouseWheelEvent. - - If l is null, no exception is thrown and no action is performed. -

-

-
Overrides:
addMouseWheelListener in class Component
-
-
-
Parameters:
l - the mouse wheel listener
-
-
-
- -

-addMouseMotionListener

-
-public void addMouseMotionListener(MouseMotionListener l)
-
-
Adds the specified mouse motion listener to receive mouse motion events from this component and the GLCanvas. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
addMouseMotionListener in class Component
-
-
-
Parameters:
l - the mouse motion listener.
-
-
-
- -

-removeInputMethodListener

-
-public void removeInputMethodListener(InputMethodListener l)
-
-
Removes the specified input method listener so that it no longer receives input method events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
removeInputMethodListener in class Component
-
-
-
Parameters:
l - the input method listener
-
-
-
- -

-addInputMethodListener

-
-public void addInputMethodListener(InputMethodListener l)
-
-
Adds the specified input method listener to receive input method events from this component and the GLCanvas. A component will only receive input method events from input methods if it also overrides getInputMethodRequests to return an InputMethodRequests instance. if the listener is null, no exception is thrown and no action is performed. -

-

-
Overrides:
addInputMethodListener in class Component
-
-
-
Parameters:
l - the input method listener
-
-
-
- -

-getGL

-
-public javax.media.opengl.GL getGL()
-
-
Gets the GL pipeline for the canvas in this GLJPane. -

-

- -
Returns:
the GL pipeline associated with this GLCanvas
See Also:
GLCanvas.getGL()
-
-
-
- -

-setGL

-
-public void setGL(javax.media.opengl.GL gl)
-
-
Sets the GL pipeline for the canvas in this GLJPane. -

-

-
Parameters:
gl - The pipeline to attach to this GLCanvas
See Also:
GLCanvas.setGL(javax.media.opengl.GL)
-
-
-
- -

-getContext

-
-public javax.media.opengl.GLContext getContext()
-
-
Retrieves the GLContext associated with the GLCanvas on this GLJFrame -

-

- -
Returns:
the associated GLContext
See Also:
GLCanvas.getContext()
-
-
-
- -

-getAutoDrawable

-
-public javax.media.opengl.GLAutoDrawable getAutoDrawable()
-
-
Retrieves a GLAutoDrawable view of the associated GLCanvas -

-

- -
Returns:
a GLAutoDrawable corresponding to the GLCanvas on this GLJFrame
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/JPanelDialog.html b/build/javadoc/net/java/joglutils/JPanelDialog.html deleted file mode 100644 index 51b6f9d..0000000 --- a/build/javadoc/net/java/joglutils/JPanelDialog.html +++ /dev/null @@ -1,659 +0,0 @@ - - - - - - -JPanelDialog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils -
-Class JPanelDialog

-
-java.lang.Object
-  extended by java.awt.Component
-      extended by java.awt.Container
-          extended by java.awt.Window
-              extended by java.awt.Dialog
-                  extended by javax.swing.JDialog
-                      extended by net.java.joglutils.JPanelDialog
-
-
-
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
-
-
-
-
public class JPanelDialog
extends JDialog
implements ActionListener
- - -

-This class is a basic encapsulation of a JPanel in a dialog. -

- -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
- - - - - - - -
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
- - - - - - - -
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
- - - - - - - -
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-  - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
JPanelDialog(Frame parent, - JPanel inputPanel) - -
-           
JPanelDialog(Frame parent, - String title, - JPanel inputPanel) - -
-           
JPanelDialog(JPanel inputPanel) - -
-          Creates a new instance of JPanelDialog
JPanelDialog(String title, - JPanel inputPanel) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidactionPerformed(ActionEvent e) - -
-           
- Componentadd(Component compToAdd) - -
-           
- booleanisAccepted() - -
-          Checks if accept option was chosen
- voidsetButtonTexts(String acceptButtonText, - String rejectButtonText) - -
-           
- booleanshowAsModal() - -
-          Shows this dialog as a modal dialog
-static booleanshowModalDialog(Frame parent, - JPanel panel) - -
-           
-static booleanshowModalDialog(Frame parent, - JPanel panel, - String title) - -
-           
-static booleanshowModalDialog(JPanel panel) - -
-           
-static booleanshowModalDialog(JPanel panel, - String title) - -
-           
- - - - - - - -
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
- - - - - - - -
Methods inherited from class java.awt.Dialog
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
- - - - - - - -
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-JPanelDialog

-
-public JPanelDialog(JPanel inputPanel)
-
-
Creates a new instance of JPanelDialog -

-

-
- -

-JPanelDialog

-
-public JPanelDialog(String title,
-                    JPanel inputPanel)
-
-
-
- -

-JPanelDialog

-
-public JPanelDialog(Frame parent,
-                    JPanel inputPanel)
-
-
-
- -

-JPanelDialog

-
-public JPanelDialog(Frame parent,
-                    String title,
-                    JPanel inputPanel)
-
-
- - - - - - - - -
-Method Detail
- -

-showAsModal

-
-public boolean showAsModal()
-
-
Shows this dialog as a modal dialog -

-

-
-
-
- -
Returns:
true if aceept option is clicked
-
-
-
- -

-isAccepted

-
-public boolean isAccepted()
-
-
Checks if accept option was chosen -

-

-
-
-
- -
Returns:
true if aceept option was clicked on last showing of dialog
-
-
-
- -

-setButtonTexts

-
-public void setButtonTexts(String acceptButtonText,
-                           String rejectButtonText)
-
-
-
-
-
-
-
-
-
- -

-actionPerformed

-
-public void actionPerformed(ActionEvent e)
-
-
-
Specified by:
actionPerformed in interface ActionListener
-
-
-
-
-
-
- -

-showModalDialog

-
-public static boolean showModalDialog(JPanel panel)
-
-
-
-
-
-
-
-
-
- -

-showModalDialog

-
-public static boolean showModalDialog(JPanel panel,
-                                      String title)
-
-
-
-
-
-
-
-
-
- -

-showModalDialog

-
-public static boolean showModalDialog(Frame parent,
-                                      JPanel panel)
-
-
-
-
-
-
-
-
-
- -

-showModalDialog

-
-public static boolean showModalDialog(Frame parent,
-                                      JPanel panel,
-                                      String title)
-
-
-
-
-
-
-
-
-
- -

-add

-
-public Component add(Component compToAdd)
-
-
-
Overrides:
add in class Container
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Chunk.html b/build/javadoc/net/java/joglutils/ThreeDS/Chunk.html deleted file mode 100644 index c8141e7..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Chunk.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - -Chunk - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Chunk

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Chunk
-
-
-
-
public class Chunk
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - -
-Field Summary
- intbytesRead - -
-           
- intid - -
-           
- intlength - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Chunk() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-id

-
-public int id
-
-
-
-
-
- -

-length

-
-public int length
-
-
-
-
-
- -

-bytesRead

-
-public int bytesRead
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Chunk

-
-public Chunk()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Face.html b/build/javadoc/net/java/joglutils/ThreeDS/Face.html deleted file mode 100644 index 214e632..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Face.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - -Face - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Face

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Face
-
-
-
-
public class Face
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
- int[]coordIndex - -
-           
- int[]vertIndex - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Face() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-vertIndex

-
-public int[] vertIndex
-
-
-
-
-
- -

-coordIndex

-
-public int[] coordIndex
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Face

-
-public Face()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Loader3DS.html b/build/javadoc/net/java/joglutils/ThreeDS/Loader3DS.html deleted file mode 100644 index 0b312fe..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Loader3DS.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - -Loader3DS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Loader3DS

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Loader3DS
-
-
-
-
public class Loader3DS
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
Loader3DS() - -
-           
-  - - - - - - - - - - - -
-Method Summary
- booleanload(Model3DS model, - String fileName) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Loader3DS

-
-public Loader3DS()
-
-
- - - - - - - - -
-Method Detail
- -

-load

-
-public boolean load(Model3DS model,
-                    String fileName)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Material.html b/build/javadoc/net/java/joglutils/ThreeDS/Material.html deleted file mode 100644 index b745317..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Material.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - - -Material - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Material

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Material
-
-
-
-
public class Material
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Field Summary
- byte[]color - -
-           
- StringstrFile - -
-           
- StringstrName - -
-           
- inttexureId - -
-           
- floatuOffset - -
-           
- floatuTile - -
-           
- floatvOffset - -
-           
- floatvTile - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Material() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-strName

-
-public String strName
-
-
-
-
-
- -

-strFile

-
-public String strFile
-
-
-
-
-
- -

-color

-
-public byte[] color
-
-
-
-
-
- -

-texureId

-
-public int texureId
-
-
-
-
-
- -

-uTile

-
-public float uTile
-
-
-
-
-
- -

-vTile

-
-public float vTile
-
-
-
-
-
- -

-uOffset

-
-public float uOffset
-
-
-
-
-
- -

-vOffset

-
-public float vOffset
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Material

-
-public Material()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Model3DS.html b/build/javadoc/net/java/joglutils/ThreeDS/Model3DS.html deleted file mode 100644 index da362f1..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Model3DS.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - - -Model3DS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Model3DS

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Model3DS
-
-
-
Direct Known Subclasses:
MyModel
-
-
-
-
public class Model3DS
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - -
-Field Summary
-protected  Loader3DSloader - -
-           
-protected  Vector<Material>materials - -
-           
-protected  Vector<Obj>objects - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Model3DS() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidaddMaterial(Material mat) - -
-           
- voidaddObject(Obj obj) - -
-           
- MaterialgetMaterial(int index) - -
-           
- intgetNumberOfMaterials() - -
-           
- intgetNumberOfObjects() - -
-           
- ObjgetObject(int index) - -
-           
- booleanload(String file) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-loader

-
-protected Loader3DS loader
-
-
-
-
-
- -

-materials

-
-protected Vector<Material> materials
-
-
-
-
-
- -

-objects

-
-protected Vector<Obj> objects
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Model3DS

-
-public Model3DS()
-
-
- - - - - - - - -
-Method Detail
- -

-load

-
-public boolean load(String file)
-
-
-
-
-
-
- -

-addMaterial

-
-public void addMaterial(Material mat)
-
-
-
-
-
-
- -

-addObject

-
-public void addObject(Obj obj)
-
-
-
-
-
-
- -

-getMaterial

-
-public Material getMaterial(int index)
-
-
-
-
-
-
- -

-getObject

-
-public Obj getObject(int index)
-
-
-
-
-
-
- -

-getNumberOfObjects

-
-public int getNumberOfObjects()
-
-
-
-
-
-
- -

-getNumberOfMaterials

-
-public int getNumberOfMaterials()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Obj.html b/build/javadoc/net/java/joglutils/ThreeDS/Obj.html deleted file mode 100644 index 960cf55..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Obj.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - -Obj - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Obj

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Obj
-
-
-
-
public class Obj
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Field Summary
- Face[]faces - -
-           
- booleanhasTexture - -
-           
- intindices - -
-           
- intmaterialID - -
-           
- Vec3[]normals - -
-           
- intnumOfFaces - -
-           
- intnumOfVerts - -
-           
- intnumTexVertex - -
-           
- StringstrName - -
-           
- Vec3[]texVerts - -
-           
- Vec3[]verts - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Obj() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-numOfVerts

-
-public int numOfVerts
-
-
-
-
-
- -

-numOfFaces

-
-public int numOfFaces
-
-
-
-
-
- -

-numTexVertex

-
-public int numTexVertex
-
-
-
-
-
- -

-materialID

-
-public int materialID
-
-
-
-
-
- -

-hasTexture

-
-public boolean hasTexture
-
-
-
-
-
- -

-strName

-
-public String strName
-
-
-
-
-
- -

-indices

-
-public int indices
-
-
-
-
-
- -

-verts

-
-public Vec3[] verts
-
-
-
-
-
- -

-normals

-
-public Vec3[] normals
-
-
-
-
-
- -

-texVerts

-
-public Vec3[] texVerts
-
-
-
-
-
- -

-faces

-
-public Face[] faces
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Obj

-
-public Obj()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/Vec3.html b/build/javadoc/net/java/joglutils/ThreeDS/Vec3.html deleted file mode 100644 index 2c29247..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/Vec3.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - -Vec3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.ThreeDS -
-Class Vec3

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Vec3
-
-
-
-
public class Vec3
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - -
-Field Summary
- floatx - -
-           
- floaty - -
-           
- floatz - -
-           
-  - - - - - - - - - - - - - - - - -
-Constructor Summary
Vec3() - -
-           
Vec3(float _x, - float _y, - float _z) - -
-           
Vec3(Vec3 v) - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-x

-
-public float x
-
-
-
-
-
- -

-y

-
-public float y
-
-
-
-
-
- -

-z

-
-public float z
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Vec3

-
-public Vec3()
-
-
-
- -

-Vec3

-
-public Vec3(float _x,
-            float _y,
-            float _z)
-
-
-
- -

-Vec3

-
-public Vec3(Vec3 v)
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Chunk.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Chunk.html deleted file mode 100644 index a0df82a..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Chunk.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Chunk - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Chunk

-
-No usage of net.java.joglutils.ThreeDS.Chunk -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Face.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Face.html deleted file mode 100644 index 1526fd8..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Face.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Face - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Face

-
- - - - - - - - - -
-Packages that use Face
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Face in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - -
Fields in net.java.joglutils.ThreeDS declared as Face
- Face[]Obj.faces - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Loader3DS.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Loader3DS.html deleted file mode 100644 index 0f87b27..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Loader3DS.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Loader3DS - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Loader3DS

-
- - - - - - - - - -
-Packages that use Loader3DS
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Loader3DS in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - -
Fields in net.java.joglutils.ThreeDS declared as Loader3DS
-protected  Loader3DSModel3DS.loader - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Material.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Material.html deleted file mode 100644 index dfc6037..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Material.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Material - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Material

-
- - - - - - - - - -
-Packages that use Material
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Material in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - -
Fields in net.java.joglutils.ThreeDS with type parameters of type Material
-protected  Vector<Material>Model3DS.materials - -
-           
-  -

- - - - - - - - - -
Methods in net.java.joglutils.ThreeDS that return Material
- MaterialModel3DS.getMaterial(int index) - -
-           
-  -

- - - - - - - - - -
Methods in net.java.joglutils.ThreeDS with parameters of type Material
- voidModel3DS.addMaterial(Material mat) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Model3DS.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Model3DS.html deleted file mode 100644 index 9507b8b..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Model3DS.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Model3DS - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Model3DS

-
- - - - - - - - - - - - - -
-Packages that use Model3DS
net.java.joglutils.test3ds  
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Model3DS in net.java.joglutils.test3ds
-  -

- - - - - - - - - -
Subclasses of Model3DS in net.java.joglutils.test3ds
- classMyModel - -
-           
-  -

- - - - - -
-Uses of Model3DS in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - -
Methods in net.java.joglutils.ThreeDS with parameters of type Model3DS
- booleanLoader3DS.load(Model3DS model, - String fileName) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Obj.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Obj.html deleted file mode 100644 index 0dd00a9..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Obj.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Obj - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Obj

-
- - - - - - - - - -
-Packages that use Obj
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Obj in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - -
Fields in net.java.joglutils.ThreeDS with type parameters of type Obj
-protected  Vector<Obj>Model3DS.objects - -
-           
-  -

- - - - - - - - - -
Methods in net.java.joglutils.ThreeDS that return Obj
- ObjModel3DS.getObject(int index) - -
-           
-  -

- - - - - - - - - -
Methods in net.java.joglutils.ThreeDS with parameters of type Obj
- voidModel3DS.addObject(Obj obj) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Vec3.html b/build/javadoc/net/java/joglutils/ThreeDS/class-use/Vec3.html deleted file mode 100644 index e6da769..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/class-use/Vec3.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.ThreeDS.Vec3 - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.ThreeDS.Vec3

-
- - - - - - - - - -
-Packages that use Vec3
net.java.joglutils.ThreeDS  
-  -

- - - - - -
-Uses of Vec3 in net.java.joglutils.ThreeDS
-  -

- - - - - - - - - - - - - - - - - -
Fields in net.java.joglutils.ThreeDS declared as Vec3
- Vec3[]Obj.normals - -
-           
- Vec3[]Obj.texVerts - -
-           
- Vec3[]Obj.verts - -
-           
-  -

- - - - - - - - -
Constructors in net.java.joglutils.ThreeDS with parameters of type Vec3
Vec3(Vec3 v) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/package-frame.html b/build/javadoc/net/java/joglutils/ThreeDS/package-frame.html deleted file mode 100644 index 05320ec..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/package-frame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -net.java.joglutils.ThreeDS - - - - - - - - - - - -net.java.joglutils.ThreeDS - - - - -
-Classes  - -
-Chunk -
-Face -
-Loader3DS -
-Material -
-Model3DS -
-Obj -
-Vec3
- - - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/package-summary.html b/build/javadoc/net/java/joglutils/ThreeDS/package-summary.html deleted file mode 100644 index aa5f27c..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/package-summary.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - -net.java.joglutils.ThreeDS - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils.ThreeDS -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Class Summary
Chunk 
Face 
Loader3DS 
Material 
Model3DS 
Obj 
Vec3 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/package-tree.html b/build/javadoc/net/java/joglutils/ThreeDS/package-tree.html deleted file mode 100644 index 85d8ad3..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -net.java.joglutils.ThreeDS Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils.ThreeDS -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/ThreeDS/package-use.html b/build/javadoc/net/java/joglutils/ThreeDS/package-use.html deleted file mode 100644 index 8a07bad..0000000 --- a/build/javadoc/net/java/joglutils/ThreeDS/package-use.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils.ThreeDS - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils.ThreeDS

-
- - - - - - - - - - - - - -
-Packages that use net.java.joglutils.ThreeDS
net.java.joglutils.ThreeDS  
net.java.joglutils.test3ds  
-  -

- - - - - - - - - - - - - - - - - - - - - - - -
-Classes in net.java.joglutils.ThreeDS used by net.java.joglutils.ThreeDS
Face - -
-           
Loader3DS - -
-           
Material - -
-           
Model3DS - -
-           
Obj - -
-           
Vec3 - -
-           
-  -

- - - - - - - - -
-Classes in net.java.joglutils.ThreeDS used by net.java.joglutils.test3ds
Model3DS - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/class-use/GLJFrame.html b/build/javadoc/net/java/joglutils/class-use/GLJFrame.html deleted file mode 100644 index b545744..0000000 --- a/build/javadoc/net/java/joglutils/class-use/GLJFrame.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.GLJFrame - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.GLJFrame

-
-No usage of net.java.joglutils.GLJFrame -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/class-use/JPanelDialog.html b/build/javadoc/net/java/joglutils/class-use/JPanelDialog.html deleted file mode 100644 index adddd40..0000000 --- a/build/javadoc/net/java/joglutils/class-use/JPanelDialog.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.JPanelDialog - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.JPanelDialog

-
-No usage of net.java.joglutils.JPanelDialog -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/BasicGLJFrameDemo.html b/build/javadoc/net/java/joglutils/demos/BasicGLJFrameDemo.html deleted file mode 100644 index 8fd0c20..0000000 --- a/build/javadoc/net/java/joglutils/demos/BasicGLJFrameDemo.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - -BasicGLJFrameDemo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.demos -
-Class BasicGLJFrameDemo

-
-java.lang.Object
-  extended by net.java.joglutils.demos.BasicGLJFrameDemo
-
-
-
-
public class BasicGLJFrameDemo
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
BasicGLJFrameDemo() - -
-           
-  - - - - - - - - - - - -
-Method Summary
-static voidmain(String[] args) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-BasicGLJFrameDemo

-
-public BasicGLJFrameDemo()
-
-
- - - - - - - - -
-Method Detail
- -

-main

-
-public static void main(String[] args)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/FontDrawerDemo.html b/build/javadoc/net/java/joglutils/demos/FontDrawerDemo.html deleted file mode 100644 index c40d38d..0000000 --- a/build/javadoc/net/java/joglutils/demos/FontDrawerDemo.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - -FontDrawerDemo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.demos -
-Class FontDrawerDemo

-
-java.lang.Object
-  extended by net.java.joglutils.demos.FontDrawerDemo
-
-
-
-
public class FontDrawerDemo
extends Object
- - -

-This Demo application uses the Lighting class and the FontDrawer class to render 3D text into a GLJFrame. - See the console for keyboard commands and command line option instructions. -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
FontDrawerDemo() - -
-           
-  - - - - - - - - - - - -
-Method Summary
-static voidmain(String[] args) - -
-          Generates GLJFrame - Generates a GLJFrame with a FontDrawer demo.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-FontDrawerDemo

-
-public FontDrawerDemo()
-
-
- - - - - - - - -
-Method Detail
- -

-main

-
-public static void main(String[] args)
-
-
Generates GLJFrame - Generates a GLJFrame with a FontDrawer demo. Console output describes input. -

-

-
Parameters:
args - Command Line argument order: textDepth xRotspeed yRotspeed zRotspeed filled flatnormal
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/class-use/BasicGLJFrameDemo.html b/build/javadoc/net/java/joglutils/demos/class-use/BasicGLJFrameDemo.html deleted file mode 100644 index c907131..0000000 --- a/build/javadoc/net/java/joglutils/demos/class-use/BasicGLJFrameDemo.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.demos.BasicGLJFrameDemo - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.demos.BasicGLJFrameDemo

-
-No usage of net.java.joglutils.demos.BasicGLJFrameDemo -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/class-use/FontDrawerDemo.html b/build/javadoc/net/java/joglutils/demos/class-use/FontDrawerDemo.html deleted file mode 100644 index 3a0b60b..0000000 --- a/build/javadoc/net/java/joglutils/demos/class-use/FontDrawerDemo.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.demos.FontDrawerDemo - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.demos.FontDrawerDemo

-
-No usage of net.java.joglutils.demos.FontDrawerDemo -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/package-frame.html b/build/javadoc/net/java/joglutils/demos/package-frame.html deleted file mode 100644 index 1c9b2a2..0000000 --- a/build/javadoc/net/java/joglutils/demos/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -net.java.joglutils.demos - - - - - - - - - - - -net.java.joglutils.demos - - - - -
-Classes  - -
-BasicGLJFrameDemo -
-FontDrawerDemo
- - - - diff --git a/build/javadoc/net/java/joglutils/demos/package-summary.html b/build/javadoc/net/java/joglutils/demos/package-summary.html deleted file mode 100644 index c69dc0a..0000000 --- a/build/javadoc/net/java/joglutils/demos/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -net.java.joglutils.demos - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils.demos -

- - - - - - - - - - - - - -
-Class Summary
BasicGLJFrameDemo 
FontDrawerDemoThis Demo application uses the Lighting class and the FontDrawer class to render 3D text into a GLJFrame.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/package-tree.html b/build/javadoc/net/java/joglutils/demos/package-tree.html deleted file mode 100644 index 5deefba..0000000 --- a/build/javadoc/net/java/joglutils/demos/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -net.java.joglutils.demos Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils.demos -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/demos/package-use.html b/build/javadoc/net/java/joglutils/demos/package-use.html deleted file mode 100644 index 2c39608..0000000 --- a/build/javadoc/net/java/joglutils/demos/package-use.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils.demos - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils.demos

-
-No usage of net.java.joglutils.demos -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/FontDrawer.html b/build/javadoc/net/java/joglutils/jogltext/FontDrawer.html deleted file mode 100644 index b56b7ca..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/FontDrawer.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - - -FontDrawer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.jogltext -
-Class FontDrawer

-
-java.lang.Object
-  extended by net.java.joglutils.jogltext.FontDrawer
-
-
-
-
public class FontDrawer
extends Object
- - -

-This class renders a TrueType Font into OpenGL -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
FontDrawer(Font font) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voiddrawString(String str, - javax.media.opengl.glu.GLU glu, - javax.media.opengl.GL gl) - -
-           
- voiddrawString(String str, - javax.media.opengl.glu.GLU glu, - javax.media.opengl.GL gl, - float xOff, - float yOff, - float zOff) - -
-           
- floatgetDepth() - -
-           
- FontgetFont() - -
-           
- booleanisFill() - -
-           
- booleanisFlatNormals() - -
-           
- voidsetDepth(float depth) - -
-           
- voidsetFill(boolean fill) - -
-           
- voidsetFlatNormals(boolean flat) - -
-           
- voidsetFont(Font font) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-FontDrawer

-
-public FontDrawer(Font font)
-
-
- - - - - - - - -
-Method Detail
- -

-setFont

-
-public void setFont(Font font)
-
-
-
-
-
-
- -

-getFont

-
-public Font getFont()
-
-
-
-
-
-
- -

-setDepth

-
-public void setDepth(float depth)
-
-
-
-
-
-
- -

-getDepth

-
-public float getDepth()
-
-
-
-
-
-
- -

-setFill

-
-public void setFill(boolean fill)
-
-
-
-
-
-
- -

-isFill

-
-public boolean isFill()
-
-
-
-
-
-
- -

-setFlatNormals

-
-public void setFlatNormals(boolean flat)
-
-
-
-
-
-
- -

-isFlatNormals

-
-public boolean isFlatNormals()
-
-
-
-
-
-
- -

-drawString

-
-public void drawString(String str,
-                       javax.media.opengl.glu.GLU glu,
-                       javax.media.opengl.GL gl)
-
-
-
-
-
-
- -

-drawString

-
-public void drawString(String str,
-                       javax.media.opengl.glu.GLU glu,
-                       javax.media.opengl.GL gl,
-                       float xOff,
-                       float yOff,
-                       float zOff)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/JogltextException.html b/build/javadoc/net/java/joglutils/jogltext/JogltextException.html deleted file mode 100644 index ad4283c..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/JogltextException.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - -JogltextException - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.jogltext -
-Class JogltextException

-
-java.lang.Object
-  extended by java.lang.Throwable
-      extended by java.lang.Exception
-          extended by java.lang.RuntimeException
-              extended by net.java.joglutils.jogltext.JogltextException
-
-
-
All Implemented Interfaces:
Serializable
-
-
-
-
public class JogltextException
extends RuntimeException
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - - - - - - - - -
-Constructor Summary
JogltextException() - -
-          Creates a new instance of jogltextException
JogltextException(String str) - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-JogltextException

-
-public JogltextException()
-
-
Creates a new instance of jogltextException -

-

-
- -

-JogltextException

-
-public JogltextException(String str)
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/class-use/FontDrawer.html b/build/javadoc/net/java/joglutils/jogltext/class-use/FontDrawer.html deleted file mode 100644 index 1ead654..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/class-use/FontDrawer.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.jogltext.FontDrawer - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.jogltext.FontDrawer

-
-No usage of net.java.joglutils.jogltext.FontDrawer -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/class-use/JogltextException.html b/build/javadoc/net/java/joglutils/jogltext/class-use/JogltextException.html deleted file mode 100644 index 7c1e3c7..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/class-use/JogltextException.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.jogltext.JogltextException - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.jogltext.JogltextException

-
-No usage of net.java.joglutils.jogltext.JogltextException -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/package-frame.html b/build/javadoc/net/java/joglutils/jogltext/package-frame.html deleted file mode 100644 index a22e201..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/package-frame.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - -net.java.joglutils.jogltext - - - - - - - - - - - -net.java.joglutils.jogltext - - - - -
-Classes  - -
-FontDrawer
- - - - - - -
-Exceptions  - -
-JogltextException
- - - - diff --git a/build/javadoc/net/java/joglutils/jogltext/package-summary.html b/build/javadoc/net/java/joglutils/jogltext/package-summary.html deleted file mode 100644 index 784bb82..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/package-summary.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -net.java.joglutils.jogltext - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils.jogltext -

- - - - - - - - - -
-Class Summary
FontDrawerThis class renders a TrueType Font into OpenGL
-  - -

- - - - - - - - - -
-Exception Summary
JogltextException 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/package-tree.html b/build/javadoc/net/java/joglutils/jogltext/package-tree.html deleted file mode 100644 index e16a193..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/package-tree.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - -net.java.joglutils.jogltext Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils.jogltext -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/jogltext/package-use.html b/build/javadoc/net/java/joglutils/jogltext/package-use.html deleted file mode 100644 index 253f224..0000000 --- a/build/javadoc/net/java/joglutils/jogltext/package-use.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils.jogltext - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils.jogltext

-
-No usage of net.java.joglutils.jogltext -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/ColorButton.html b/build/javadoc/net/java/joglutils/lighting/ColorButton.html deleted file mode 100644 index 1fe15a8..0000000 --- a/build/javadoc/net/java/joglutils/lighting/ColorButton.html +++ /dev/null @@ -1,524 +0,0 @@ - - - - - - -ColorButton - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class ColorButton

-
-java.lang.Object
-  extended by java.awt.Component
-      extended by java.awt.Container
-          extended by javax.swing.JComponent
-              extended by javax.swing.AbstractButton
-                  extended by javax.swing.JButton
-                      extended by net.java.joglutils.lighting.ColorButton
-
-
-
All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
-
-
-
-
public class ColorButton
extends JButton
implements ActionListener
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JButton
JButton.AccessibleJButton
-  - - - - - - - - -
Nested classes/interfaces inherited from class javax.swing.AbstractButton
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
-  - - - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
- - - - - - - -
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
- - - - - - - -
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
- - - - - - - -
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
- - - - - - - -
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-  - - - - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
ColorButton() - -
-          Creates a new instance of GlobalAmbientButton
ColorButton(Action a) - -
-           
ColorButton(Icon icon) - -
-           
ColorButton(String text) - -
-           
ColorButton(String text, - Icon icon) - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidactionPerformed(ActionEvent e) - -
-           
- ColorgetColor() - -
-           
- voidsetColor(Color c) - -
-           
- - - - - - - -
Methods inherited from class javax.swing.JButton
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI
- - - - - - - -
Methods inherited from class javax.swing.AbstractButton
addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
- - - - - - - -
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ColorButton

-
-public ColorButton()
-
-
Creates a new instance of GlobalAmbientButton -

-

-
- -

-ColorButton

-
-public ColorButton(Action a)
-
-
-
- -

-ColorButton

-
-public ColorButton(Icon icon)
-
-
-
- -

-ColorButton

-
-public ColorButton(String text)
-
-
-
- -

-ColorButton

-
-public ColorButton(String text,
-                   Icon icon)
-
-
- - - - - - - - -
-Method Detail
- -

-getColor

-
-public Color getColor()
-
-
-
-
-
-
-
-
-
- -

-setColor

-
-public void setColor(Color c)
-
-
-
-
-
-
-
-
-
- -

-actionPerformed

-
-public void actionPerformed(ActionEvent e)
-
-
-
Specified by:
actionPerformed in interface ActionListener
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/Light.html b/build/javadoc/net/java/joglutils/lighting/Light.html deleted file mode 100644 index 46359e7..0000000 --- a/build/javadoc/net/java/joglutils/lighting/Light.html +++ /dev/null @@ -1,1642 +0,0 @@ - - - - - - -Light - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class Light

-
-java.lang.Object
-  extended by net.java.joglutils.lighting.Light
-
-
-
-
public class Light
extends Object
- - -

-This class encapsulates the settings for an OpenGL light. It has two modes: -
1. if an object implementing GL is attached, the OpenGL state is - updated as changes to this Light are made, or on enable() or apply() calls. -
2.if no object is atttached, enable(GL) and apply(GL) applies settings, but the OpenGL state - is not altered when this Light's settings are changed. -
Note: GL_LIGHTING must be enabled in the OpenGL context by the user - this object will not do so. -

- -

-


- -

- - - - - - - - - - - - - - - - - -
-Constructor Summary
Light() - -
-          Creates a new instance of Light with the default settings.
Light(javax.media.opengl.GL gl) - -
-          Creates a new instance of Light with default settings attached to the specified GL Context
Light(javax.media.opengl.GL gl, - int lightNumber) - -
-          Creates a new instance of Light with default settings attached to the specified GL Context with an explicit light number
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidapply() - -
-          Applies the settings on this Light to the attached GL Context.
- voidapply(javax.media.opengl.GL gl) - -
-          Applies the settings on this Light to the specified OpenGL context, - using the light number stored in the Light.
- voidapply(javax.media.opengl.GL gl, - int lightNumber) - -
-          Applies the settings on this Light to the specified OpenGL context, - using the requested light number.
- voiddetachGL() - -
-          Detaches the currently attached OpenGL context from this object
- voiddisable() - -
-          Disables this Light on the attached GL Context.
- voiddisable(javax.media.opengl.GL gl) - -
-          Disables the light number stored in this Light on the specified OpenGL Context.
- voiddisable(javax.media.opengl.GL gl, - int lightNumber) - -
-          Disables the requested light on the specified OpenGL Context.
- voidenable() - -
-          Enables this Light on the attached GL Context.
- voidenable(javax.media.opengl.GL gl) - -
-          Enables the light number stored in this Light on the specified OpenGL Context.
- voidenable(javax.media.opengl.GL gl, - int lightNumber) - -
-          Enables the requested light on the specified OpenGL Context.
-protected  voidfinalize() - -
-           
- ColorgetAmbient() - -
-          Retrieves the ambient color for this Light.
- javax.media.opengl.GLgetAttachedGL() - -
-          Returns the OpenGL context attached to this Lighting object
- floatgetConstantAttenuation() - -
-          Retrieves the coefficient of the constant term in the attenuation equation for this Light.
- ColorgetDiffuse() - -
-          Retrieves the diffuse color for this Light.
- intgetGLLightIdentifier() - -
-          Determines the OpenGL light identifier associated with this Light.
- intgetLightNumber() - -
-          Determines the number of the light associated with this Light.
- float[]getLightPosition() - -
-          Retrieves the direction vector for this light.
- floatgetLightW() - -
-          Retrieves the w-component of this Light.
- floatgetLinearAttenuation() - -
-          Retrieves the coefficient of the linear term in the attenuation equation for this Light.
- floatgetQuadraticAttenuation() - -
-          Retrieves the coefficient of the quadratic term in the attenuation equation for this Light.
- ColorgetSpecular() - -
-          Retrieves the specular color for this Light.
- floatgetSpotCutoff() - -
-          Retrieves the spotlight cutoff angle for this Light.
- float[]getSpotDirection() - -
-          Retrieves a vector indicating the spotlight direction used in this Light.
- floatgetSpotExponent() - -
-          Retrieves the spotlight exponent in this Light.
-static booleanhasFreeLights(javax.media.opengl.GL gl) - -
-          Determines if there is space in a specified OpenGL context for another Light to be attached
-static intidToNum(int lightID) - -
-          Converts the specified OpenGL light ID number to a number
-static voidinitializePhongShader() - -
-          Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading) on the current OpenGL context.
-static voidinitializePhongShader(javax.media.opengl.GL gl) - -
-          Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading).
- booleanisAmbientPhongColorMaterial() - -
-          Determines if color material is used for ambient in the Phong shader
- booleanisAttached() - -
-          Determines if an OpenGL context is attached.
- booleanisDiffusePhongColorMaterial() - -
-          Determines if color material is used for diffuse in the Phong shader
- booleanisPhongShaded() - -
-          Tells if this Light is using Phong shading
- voidmakeDirectional() - -
-          Sets this Light so that the light seems to be infinitely far away in terms of some of the calculations.
-static intmaxNumberOfLightsInGL(javax.media.opengl.GL gl) - -
-          Determines the maximum number of lights in the specified GL context
-static intnumToID(int lightNum) - -
-          Determines the OpenGL ID for the specified light number
-static voidremovePhongShader() - -
-          Removes the Phong Shader program from the current GL Context
-static voidremovePhongShader(javax.media.opengl.GL gl) - -
-          Removes the Phong Shader program from the specified GL Context
- voidretrieve() - -
-          Reconfigure the settings for this Light from the state of the attached - GL Context.
- voidretrieve(javax.media.opengl.GL gl) - -
-          Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the light number stored in the Light.
- voidretrieve(javax.media.opengl.GL gl, - int lightNumber) - -
-          Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the requested light number.
- voidsetAmbient(Color ambient) - -
-          Sets the ambient (light "filling the room") color for this Light.
- voidsetAttachedGL(javax.media.opengl.GL gl) - -
-          Attached the specified OpenGL context to this object
- voidsetConstantAttenuation(float constantAttenuation) - -
-          Sets the coefficient of the constant term in the attenuation equation for this Light.
- voidsetDiffuse(Color diffuse) - -
-          Sets the diffuse ("dull reflection") color for this Light.
- voidsetLightID(int lightID) - -
-          Sets the OpenGL light to use in subsequent method calls from a GL identifier
- voidsetLightNumber(int lightNumber) - -
-          Sets the number of the OpenGL light to use in subsequent method calls
- voidsetLightPosition(float[] lightPosition) - -
-          Specifies the direction vector for this Light.
- voidsetLightPosition(float lightx, - float lighty, - float lightz) - -
-          Specifies the direction vector for this Light.
- voidsetLightW(float lightW) - -
-          Specifies the w-component to be used for this Light.
- voidsetLinearAttenuation(float linearAttenuation) - -
-          Sets the coefficient of the linear term in the attenuation equation for this Light.
- voidsetPhongColorMaterial(boolean ambient, - boolean diffuse) - -
-          Sets whether or not the opengl color should be used for the phong color shader
- voidsetPhongShaded(boolean usePhongShading) - -
-          Sets if phong per-fragment shading (as opposed to fixed-functionality per-vertex shading) is to be used with this Light.
- voidsetQuadraticAttenuation(float quadraticAttenuation) - -
-          Sets the coefficient of the quadratic term in the attenuation equation for this Light.
- voidsetSpecular(Color specular) - -
-          Sets the specular ("shiny reflection") color for this Light.
- voidsetSpotCutoff(float spotCutoff) - -
-          Sets the spotlight cutoff angle for this Light.
- voidsetSpotDirection(float[] spotDirection) - -
-          Sets the spotlight direction for this Light.
- voidsetSpotDirection(float spotx, - float spoty, - float spotz) - -
-          Sets the spotlight direction for this Light.
- voidsetSpotExponent(float spotExponent) - -
-          Sets the spotlight exponent in this Light.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Light

-
-public Light()
-
-
Creates a new instance of Light with the default settings. -

-

-
- -

-Light

-
-public Light(javax.media.opengl.GL gl)
-      throws LightingException
-
-
Creates a new instance of Light with default settings attached to the specified GL Context -

-

-
Parameters:
gl - the OpenGL context to attach the light to -
Throws: -
LightingException - if the light number is invalid or is already in use by another Light. Light is detached from any OpenGL Context.
-
-
- -

-Light

-
-public Light(javax.media.opengl.GL gl,
-             int lightNumber)
-      throws LightingException
-
-
Creates a new instance of Light with default settings attached to the specified GL Context with an explicit light number -

-

-
Parameters:
gl - the OpenGL context to attach the light to
lightNumber - the light number to be used (must be on [0,7]) -
Throws: -
LightingException - if the light number is invalid or is already in use by another Light. Light is detached from any OpenGL Context.
-
- - - - - - - - -
-Method Detail
- -

-finalize

-
-protected void finalize()
-
-
-
Overrides:
finalize in class Object
-
-
-
-
-
-
- -

-getGLLightIdentifier

-
-public int getGLLightIdentifier()
-
-
Determines the OpenGL light identifier associated with this Light. If no GL context is attached to this - object, the result is undefined (although generally reflects the last light used) -

-

- -
Returns:
the OpenGL identifier for this light
-
-
-
- -

-getLightNumber

-
-public int getLightNumber()
-
-
Determines the number of the light associated with this Light. If no GL context is attached to this - object, the result is undefined (although generally reflects the last light used) -

-

- -
Returns:
a number on [0,7] representing which light is used
-
-
-
- -

-setLightNumber

-
-public void setLightNumber(int lightNumber)
-                    throws LightingException
-
-
Sets the number of the OpenGL light to use in subsequent method calls -

-

-
Parameters:
lightNumber - the light number to apply to this Light (must be on [0,7]) -
Throws: -
LightingException - in use by another Light object on the attached OpenGL Context. Light is detached from any OpenGL Context.
-
-
-
- -

-setLightID

-
-public void setLightID(int lightID)
-                throws LightingException
-
-
Sets the OpenGL light to use in subsequent method calls from a GL identifier -

-

-
Parameters:
lightID - the OpenGL light ID (must be of the GL_LIGHTn family) -
Throws: -
LightingException - if the input is not a valid light or the light is in use by another Light on the attached OpenGL Context. Light is detached from any OpenGL Context.
-
-
-
- -

-setAttachedGL

-
-public void setAttachedGL(javax.media.opengl.GL gl)
-                   throws LightingException
-
-
Attached the specified OpenGL context to this object -

-

-
Parameters:
gl - the OpenGL context to attach this to -
Throws: -
LightingException - if the specified context has no free lights. Light is detached from any OpenGL Context.
-
-
-
- -

-getAttachedGL

-
-public javax.media.opengl.GL getAttachedGL()
-
-
Returns the OpenGL context attached to this Lighting object -

-

- -
Returns:
the attached OpenGL context, or null if there is no attached context
-
-
-
- -

-detachGL

-
-public void detachGL()
-
-
Detaches the currently attached OpenGL context from this object -

-

-
-
-
-
- -

-isAttached

-
-public boolean isAttached()
-
-
Determines if an OpenGL context is attached. -

-

- -
Returns:
true if an OpenGL context is attached to this object.
-
-
-
- -

-apply

-
-public void apply()
-
-
Applies the settings on this Light to the attached GL Context. - Note that this will not apply Phong Shader settings. -

-

-
-
-
-
- -

-retrieve

-
-public void retrieve()
-
-
Reconfigure the settings for this Light from the state of the attached - GL Context. Note that this will not retrieve Phong Shader settings. -

-

-
-
-
-
- -

-enable

-
-public void enable()
-
-
Enables this Light on the attached GL Context. Note that GL_LIGHTING must be enabled in this context. -

-

-
-
-
-
- -

-disable

-
-public void disable()
-
-
Disables this Light on the attached GL Context. Note that GL_LIGHTING must be enabled in this context. -

-

-
-
-
-
- -

-apply

-
-public void apply(javax.media.opengl.GL gl)
-           throws LightingException
-
-
Applies the settings on this Light to the specified OpenGL context, - using the light number stored in the Light. Note that this will not apply Phong Shader settings. -

-

-
Parameters:
gl - the OpenGL context to use. -
Throws: -
LightingException - if the light number stored in this Light is invalid on the specified context.
-
-
-
- -

-retrieve

-
-public void retrieve(javax.media.opengl.GL gl)
-              throws LightingException
-
-
Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the light number stored in the Light. Note that this will not retrieve Phong Shader settings. -

-

-
Parameters:
gl - the OpenGL context to use. -
Throws: -
LightingException - if the light number stored in this Light is invalid on the specified context.
-
-
-
- -

-enable

-
-public void enable(javax.media.opengl.GL gl)
-            throws LightingException
-
-
Enables the light number stored in this Light on the specified OpenGL Context. -

-

-
Parameters:
gl - the OpenGL context to use. -
Throws: -
LightingException - if the light number stored in this Light is invalid on the specified context.
-
-
-
- -

-disable

-
-public void disable(javax.media.opengl.GL gl)
-             throws LightingException
-
-
Disables the light number stored in this Light on the specified OpenGL Context. -

-

-
Parameters:
gl - the OpenGL context to use. -
Throws: -
LightingException - if the light number stored in this Light is invalid on the specified context.
-
-
-
- -

-apply

-
-public void apply(javax.media.opengl.GL gl,
-                  int lightNumber)
-           throws LightingException
-
-
Applies the settings on this Light to the specified OpenGL context, - using the requested light number. Note that this will not apply Phong Shader settings. -

-

-
Parameters:
gl - the OpenGL context to use.
lightNumber - the number of the light to use (should be on [0,7]). -
Throws: -
LightingException - if the requested light is not valid on the specified context.
-
-
-
- -

-retrieve

-
-public void retrieve(javax.media.opengl.GL gl,
-                     int lightNumber)
-              throws LightingException
-
-
Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the requested light number. Note that this will not retrieve Phong Shader settings. -

-

-
Parameters:
gl - the OpenGL context to use.
lightNumber - the number of the light to use (should be on [0,7]). -
Throws: -
LightingException - if the requested light is not valid on the specified context.
-
-
-
- -

-enable

-
-public void enable(javax.media.opengl.GL gl,
-                   int lightNumber)
-            throws LightingException
-
-
Enables the requested light on the specified OpenGL Context. -

-

-
Parameters:
gl - the OpenGL context to use.
lightNumber - the number of the light to use (should be on [0,7]). -
Throws: -
LightingException - if the requested light is not valid on the specified context.
-
-
-
- -

-disable

-
-public void disable(javax.media.opengl.GL gl,
-                    int lightNumber)
-             throws LightingException
-
-
Disables the requested light on the specified OpenGL Context. -

-

-
Parameters:
gl - the OpenGL context to use.
lightNumber - the number of the light to use (should be on [0,7]). -
Throws: -
LightingException - if the requested light is not valid on the specified context.
-
-
-
- -

-setAmbient

-
-public void setAmbient(Color ambient)
-
-
Sets the ambient (light "filling the room") color for this Light. Default is {0,0,0,1}. -

-

-
Parameters:
ambient - the Color to be copied into this Light. Later changes to the Color object will not be reflected in the Light.
-
-
-
- -

-getAmbient

-
-public Color getAmbient()
-
-
Retrieves the ambient color for this Light. -

-

- -
Returns:
a copy of the color used in this Light.
-
-
-
- -

-setDiffuse

-
-public void setDiffuse(Color diffuse)
-
-
Sets the diffuse ("dull reflection") color for this Light. Default is {1,1,1,1}. -

-

-
Parameters:
diffuse - the Color to be copied into this Light. Later changes to the Color object will not be reflected in the Light.
-
-
-
- -

-getDiffuse

-
-public Color getDiffuse()
-
-
Retrieves the diffuse color for this Light. -

-

- -
Returns:
a copy of the color used in this Light.
-
-
-
- -

-setSpecular

-
-public void setSpecular(Color specular)
-
-
Sets the specular ("shiny reflection") color for this Light. Default is {1,1,1,1}. -

-

-
Parameters:
specular - the Color to be copied into this Light. Later changes to the Color object will not be reflected in the Light.
-
-
-
- -

-getSpecular

-
-public Color getSpecular()
-
-
Retrieves the specular color for this Light. -

-

- -
Returns:
a copy of the color used in this Light.
-
-
-
- -

-setLightPosition

-
-public void setLightPosition(float[] lightPosition)
-
-
Specifies the direction vector for this Light. - (i.e. this the first 3 components specified when setting GL_POSITION with glLight) - Default is {0,0,1}. -

-

-
Parameters:
lightPosition - an array of three components in {x,y,z} format to be copied into the Light.
-
-
-
- -

-setLightPosition

-
-public void setLightPosition(float lightx,
-                             float lighty,
-                             float lightz)
-
-
Specifies the direction vector for this Light. - (i.e. this the first 3 components specified when setting GL_POSITION with glLight) - Default is {0,0,1}. -

-

-
Parameters:
lightx - the x component of the light position
lighty - the y component of the light position
lightz - the z component of the light position
-
-
-
- -

-getLightPosition

-
-public float[] getLightPosition()
-
-
Retrieves the direction vector for this light. -

-

- -
Returns:
a copy of the position of this Light
-
-
-
- -

-setSpotDirection

-
-public void setSpotDirection(float[] spotDirection)
-
-
Sets the spotlight direction for this Light. Default is {0,0,-1}. -

-

-
Parameters:
spotDirection - A 3-element array in {x,y,z} format specifying the spotlight direction vector.
-
-
-
- -

-setSpotDirection

-
-public void setSpotDirection(float spotx,
-                             float spoty,
-                             float spotz)
-
-
Sets the spotlight direction for this Light. Default is {0,0,-1}. -

-

-
Parameters:
spotx - the x coordinate of the spotlight direction vector.
spoty - the y coordinate of the spotlight direction vector.
spotz - the z coordinate of the spotlight direction vector.
-
-
-
- -

-getSpotDirection

-
-public float[] getSpotDirection()
-
-
Retrieves a vector indicating the spotlight direction used in this Light. -

-

- -
Returns:
a copy of the spotlight direction of this Light
-
-
-
- -

-setLightW

-
-public void setLightW(float lightW)
-
-
Specifies the w-component to be used for this Light. Default is 0. - (i.e. this the last component specified when setting GL_POSITION with glLight) - If 0, this light is treated as a direction source. -

-

-
Parameters:
lightW - the distance to be applied.
-
-
-
- -

-getLightW

-
-public float getLightW()
-
-
Retrieves the w-component of this Light. -

-

- -
Returns:
the component. If 0, this Light is a directional source.
-
-
-
- -

-makeDirectional

-
-public void makeDirectional()
-
-
Sets this Light so that the light seems to be infinitely far away in terms of some of the calculations. -

-

-
-
-
-
- -

-setSpotCutoff

-
-public void setSpotCutoff(float spotCutoff)
-
-
Sets the spotlight cutoff angle for this Light. Default is 180. -

-

-
Parameters:
spotCutoff - the angle to use.
-
-
-
- -

-getSpotCutoff

-
-public float getSpotCutoff()
-
-
Retrieves the spotlight cutoff angle for this Light. -

-

- -
Returns:
the angle used in this Light.
-
-
-
- -

-setSpotExponent

-
-public void setSpotExponent(float spotExponent)
-
-
Sets the spotlight exponent in this Light. Default is 0. -

-

-
Parameters:
spotExponent - the exponent to set on this Light.
-
-
-
- -

-getSpotExponent

-
-public float getSpotExponent()
-
-
Retrieves the spotlight exponent in this Light. -

-

- -
Returns:
the exponent used in this Light.
-
-
-
- -

-setConstantAttenuation

-
-public void setConstantAttenuation(float constantAttenuation)
-
-
Sets the coefficient of the constant term in the attenuation equation for this Light. - Default is 1. -

-

-
Parameters:
constantAttenuation - the value to use for the constant coefficient.
-
-
-
- -

-getConstantAttenuation

-
-public float getConstantAttenuation()
-
-
Retrieves the coefficient of the constant term in the attenuation equation for this Light. -

-

- -
Returns:
the constant coefficient.
-
-
-
- -

-setLinearAttenuation

-
-public void setLinearAttenuation(float linearAttenuation)
-
-
Sets the coefficient of the linear term in the attenuation equation for this Light. - Default is 0. -

-

-
Parameters:
linearAttenuation - the value to use for the linear coefficient.
-
-
-
- -

-getLinearAttenuation

-
-public float getLinearAttenuation()
-
-
Retrieves the coefficient of the linear term in the attenuation equation for this Light. -

-

- -
Returns:
the linear coefficient.
-
-
-
- -

-setQuadraticAttenuation

-
-public void setQuadraticAttenuation(float quadraticAttenuation)
-
-
Sets the coefficient of the quadratic term in the attenuation equation for this Light. - Default is 0. -

-

-
Parameters:
quadraticAttenuation - the value to use for the quadratic coefficient.
-
-
-
- -

-getQuadraticAttenuation

-
-public float getQuadraticAttenuation()
-
-
Retrieves the coefficient of the quadratic term in the attenuation equation for this Light. -

-

- -
Returns:
the quadratic coefficient.
-
-
-
- -

-maxNumberOfLightsInGL

-
-public static int maxNumberOfLightsInGL(javax.media.opengl.GL gl)
-
-
Determines the maximum number of lights in the specified GL context -

-

-
Parameters:
gl - the OpenGL context to test -
Returns:
the maximum number of lights (highest possible in OpenGL is 8)
-
-
-
- -

-idToNum

-
-public static int idToNum(int lightID)
-                   throws LightingException
-
-
Converts the specified OpenGL light ID number to a number -

-

-
Parameters:
lightID - the OpenGL ID (should be one of GL_LIGHTn where n is on [0,7]) -
Returns:
the appropriate light number (on [0,7]) -
Throws: -
LightingException - if the supplied lightID is not an OpenGL light ID
-
-
-
- -

-numToID

-
-public static int numToID(int lightNum)
-                   throws LightingException
-
-
Determines the OpenGL ID for the specified light number -

-

-
Parameters:
lightNum - a number on [0,7] specifying the a light -
Returns:
the OpenGL ID for that light number (from the GL_LIGHTn family) -
Throws: -
LightingException - if the supplied lightID is not an OpenGL light ID
-
-
-
- -

-hasFreeLights

-
-public static boolean hasFreeLights(javax.media.opengl.GL gl)
-
-
Determines if there is space in a specified OpenGL context for another Light to be attached -

-

-
Parameters:
gl - the openGL context to test -
Returns:
true if another Light object can be attached to this GL context
-
-
-
- -

-setPhongShaded

-
-public void setPhongShaded(boolean usePhongShading)
-                    throws LightingException
-
-
Sets if phong per-fragment shading (as opposed to fixed-functionality per-vertex shading) is to be used with this Light. Must come before the light is enabled. - This uses a vertex and fragment shader, so the fixed-functionality pipeline will not function normally. -

-

-
Parameters:
usePhongShading - if Phong should be used. If true and this Light is attached to a GL Context, initializes on this Light's context -
Throws: -
LightingException - if the current OpenGL context does not support GLSL shaders or the shader did not sucessfully compile and link
-
-
-
- -

-isPhongShaded

-
-public boolean isPhongShaded()
-
-
Tells if this Light is using Phong shading -

-

- -
Returns:
true if this Light is in Phong shading mode
-
-
-
- -

-setPhongColorMaterial

-
-public void setPhongColorMaterial(boolean ambient,
-                                  boolean diffuse)
-
-
Sets whether or not the opengl color should be used for the phong color shader -

-

-
Parameters:
ambient - the ambient color material mode
diffuse - the diffuse color material mode
-
-
-
- -

-isAmbientPhongColorMaterial

-
-public boolean isAmbientPhongColorMaterial()
-
-
Determines if color material is used for ambient in the Phong shader -

-

- -
Returns:
true if color material is used for the phong ambient shader
-
-
-
- -

-isDiffusePhongColorMaterial

-
-public boolean isDiffusePhongColorMaterial()
-
-
Determines if color material is used for diffuse in the Phong shader -

-

- -
Returns:
true if color material is used for the phong diffuse shader
-
-
-
- -

-initializePhongShader

-
-public static void initializePhongShader()
-                                  throws LightingException
-
-
Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading) on the current OpenGL context. Must be called before Phong shading can be activated. -

-

- -
Throws: -
LightingException - if the OpenGL context does not support GLSL shaders or the shader did not sucessfully compile and link
-
-
-
- -

-initializePhongShader

-
-public static void initializePhongShader(javax.media.opengl.GL gl)
-                                  throws LightingException
-
-
Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading). Must be called on the context before Phong shading can be activated. -

-

-
Parameters:
gl - the openGL context on which to initialize the shader -
Throws: -
LightingException - if the OpenGL context does not support GLSL shaders or the shader did not sucessfully compile and link
-
-
-
- -

-removePhongShader

-
-public static void removePhongShader()
-                              throws LightingException
-
-
Removes the Phong Shader program from the current GL Context -

-

- -
Throws: -
LightingException - if there is no Phong Shader
-
-
-
- -

-removePhongShader

-
-public static void removePhongShader(javax.media.opengl.GL gl)
-                              throws LightingException
-
-
Removes the Phong Shader program from the specified GL Context -

-

-
Parameters:
gl - the OpenGL context to remove the Phong shader program from -
Throws: -
LightingException - if there is no Phong Shader initialized on this context
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/LightPanel.html b/build/javadoc/net/java/joglutils/lighting/LightPanel.html deleted file mode 100644 index bfa13e1..0000000 --- a/build/javadoc/net/java/joglutils/lighting/LightPanel.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - - -LightPanel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class LightPanel

-
-java.lang.Object
-  extended by java.awt.Component
-      extended by java.awt.Container
-          extended by javax.swing.JComponent
-              extended by javax.swing.JPanel
-                  extended by net.java.joglutils.lighting.LightPanel
-
-
-
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
-
-
-
-
public class LightPanel
extends JPanel
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-  - - - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
- - - - - - - -
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
- - - - - - - -
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-  - - - - - - - - - - - - - -
-Constructor Summary
LightPanel() - -
-          Creates new form LightPanel
LightPanel(Light l) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- voidlightToPanel(Light l) - -
-           
- voidpanelToLight(Light l) - -
-           
- - - - - - - -
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
- - - - - - - -
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-LightPanel

-
-public LightPanel()
-
-
Creates new form LightPanel -

-

-
- -

-LightPanel

-
-public LightPanel(Light l)
-
-
- - - - - - - - -
-Method Detail
- -

-panelToLight

-
-public void panelToLight(Light l)
-
-
-
-
-
-
- -

-lightToPanel

-
-public void lightToPanel(Light l)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/LightingException.html b/build/javadoc/net/java/joglutils/lighting/LightingException.html deleted file mode 100644 index 7d536b9..0000000 --- a/build/javadoc/net/java/joglutils/lighting/LightingException.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - -LightingException - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class LightingException

-
-java.lang.Object
-  extended by java.lang.Throwable
-      extended by java.lang.Exception
-          extended by java.lang.RuntimeException
-              extended by net.java.joglutils.lighting.LightingException
-
-
-
All Implemented Interfaces:
Serializable
-
-
-
-
public class LightingException
extends RuntimeException
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - - - - - - - - -
-Constructor Summary
LightingException() - -
-          Creates a new instance of LightingException
LightingException(String s) - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-LightingException

-
-public LightingException()
-
-
Creates a new instance of LightingException -

-

-
- -

-LightingException

-
-public LightingException(String s)
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/Material.html b/build/javadoc/net/java/joglutils/lighting/Material.html deleted file mode 100644 index a696640..0000000 --- a/build/javadoc/net/java/joglutils/lighting/Material.html +++ /dev/null @@ -1,818 +0,0 @@ - - - - - - -Material - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class Material

-
-java.lang.Object
-  extended by net.java.joglutils.lighting.Material
-
-
-
-
public class Material
extends Object
- - -

-This class encapsulates OpenGL material settings in an object-oriented interface. - The class operates in two modes: -
1. If a GL Context is attached, setter methods apply the settings to the - OpenGL state as well as the object. the apply() and retrieve() method can be - used for all of the settings -
2. If no GL Context is attached, apply(GL) and retrieve(GL) set / get - the OpenGL state from this object. -
Note: GL_LIGHTING must be enabled in the OpenGL context by the user - this object will not do so. -

- -

-


- -

- - - - - - - - - - - - - - - - - -
-Constructor Summary
Material() - -
-          Creates a new instance of Material from the OpenGL default material settings
Material(javax.media.opengl.GL gl) - -
-          Creates a new instance of material, with the specified GL context attached.
Material(javax.media.opengl.GL gl, - int face) - -
-          Creates a new instance of material, with the specified GL context attached.
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidapply() - -
-          Sets the state on the attached OpenGL Context to match this Material.
- voidapply(javax.media.opengl.GL gl) - -
-          Sets the OpenGL State in the supplied context based on the settings in this Material.
- voidapplyGlobalAmbient(Color ambient) - -
-          Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the attached GL context.
-static voidapplyGlobalAmbient(javax.media.opengl.GL gl, - Color ambient) - -
-          Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the specified GL context.
- voiddetachGL() - -
-          Detaches the currently attached OpenGL context from this object
- ColorgetAmbient() - -
-          This retrieves the ambient color from this Material.
- javax.media.opengl.GLgetAttachedGL() - -
-          Returns the OpenGL context attached to this Lighting object
- ColorgetDiffuse() - -
-          This retrieves the diffuse color from this Material.
- ColorgetEmissive() - -
-          This retrieves the emissive color from this Material.
- intgetFace() - -
-          Determines what face the material settings are applied to or retrieved from.
- ColorgetGlobalAmbient() - -
-          Retrieves the GL_LIGHT_MODEL_AMBIENT color from the attached OpenGL context.
-static ColorgetGlobalAmbient(javax.media.opengl.GL gl) - -
-          Retrieves the GL_LIGHT_MODEL_AMBIENT color from a specified OpenGL context.
- floatgetShininess() - -
-          Retrieves the shininess from this Material.
- ColorgetSpecular() - -
-          Retrieves the specular color from this Material.
- booleanisAttached() - -
-          Determines if an OpenGL context is attached.
- voidretrieve() - -
-          Sets this Material object from the attached OpenGL state.
- voidretrieve(javax.media.opengl.GL gl) - -
-          Sets the settings in this Material from the specified OpenGL context's state.
- voidsetAmbient(Color ambient) - -
-          Sets this object's ambient color from an input Color.
- voidsetAttachedGL(javax.media.opengl.GL gl) - -
-          Attached the specified OpenGL context to this object
- voidsetDiffuse(Color diffuse) - -
-          Sets this object's diffuse color from an input Color.
- voidsetEmissive(Color emissive) - -
-          Sets this object's emissive color from an input Color.
- voidsetFace(int face) - -
-          Specifies the face for subsequent apply method calls to apply and retrieve the material settings.
- voidsetShininess(float shininess) - -
-          Sets the shininess for this Material.
- voidsetSpecular(Color specular) - -
-          Sets this object's specular color from an input Color.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Material

-
-public Material()
-
-
Creates a new instance of Material from the OpenGL default material settings -

-

-
- -

-Material

-
-public Material(javax.media.opengl.GL gl,
-                int face)
-
-
Creates a new instance of material, with the specified GL context attached. -

-

-
Parameters:
gl - the OpenGL context to attach
face - the face to use for configuring the material
-
-
- -

-Material

-
-public Material(javax.media.opengl.GL gl)
-
-
Creates a new instance of material, with the specified GL context attached. Settings are applied to front and back. -

-

-
Parameters:
gl - the OpenGL context to attach
-
- - - - - - - - -
-Method Detail
- -

-setAttachedGL

-
-public void setAttachedGL(javax.media.opengl.GL gl)
-
-
Attached the specified OpenGL context to this object -

-

-
Parameters:
gl - the OpenGL context to attach this to
-
-
-
- -

-getAttachedGL

-
-public javax.media.opengl.GL getAttachedGL()
-
-
Returns the OpenGL context attached to this Lighting object -

-

- -
Returns:
the attached OpenGL context, or null if there is no attached context
-
-
-
- -

-detachGL

-
-public void detachGL()
-
-
Detaches the currently attached OpenGL context from this object -

-

-
-
-
-
- -

-isAttached

-
-public boolean isAttached()
-
-
Determines if an OpenGL context is attached. -

-

- -
Returns:
true if an OpenGL context is attached to this object.
-
-
-
- -

-apply

-
-public void apply(javax.media.opengl.GL gl)
-
-
Sets the OpenGL State in the supplied context based on the settings in this Material. -

-

-
Parameters:
gl - the OpenGL Context upon which to apply the settings from this Material.
-
-
-
- -

-retrieve

-
-public void retrieve(javax.media.opengl.GL gl)
-
-
Sets the settings in this Material from the specified OpenGL context's state. -

-

-
Parameters:
gl - the OpenGL Context to use in setting this Material's settings.
-
-
-
- -

-apply

-
-public void apply()
-           throws LightingException
-
-
Sets the state on the attached OpenGL Context to match this Material. -

-

- -
Throws: -
sddm.lighting.LightingException - if no OpenGL Context is attached. -
LightingException
-
-
-
- -

-retrieve

-
-public void retrieve()
-              throws LightingException
-
-
Sets this Material object from the attached OpenGL state. -

-

- -
Throws: -
sddm.lighting.LightingException - if no OpenGL Context is attached. -
LightingException
-
-
-
- -

-setFace

-
-public void setFace(int face)
-             throws LightingException
-
-
Specifies the face for subsequent apply method calls to apply and retrieve the material settings. If - GL_FRONT_AND_BACK, will retrieve from GL_FRONT. -

-

-
Parameters:
face - the face to apply material settings upon. Must be GL.GL_FRONT_AND_BACK, GL.GL_FRONT, or GL.GL_BACK -
Throws: -
sddm.lighting.LightingException - if an invalid input is provided -
LightingException
-
-
-
- -

-getFace

-
-public int getFace()
-
-
Determines what face the material settings are applied to or retrieved from. -

-

- -
Returns:
the face used - can be GL.GL_FRONT_AND_BACK, GL.GL_FRONT, or GL.GL_BACK
-
-
-
- -

-setSpecular

-
-public void setSpecular(Color specular)
-
-
Sets this object's specular color from an input Color. Default is {0,0,0,1}. -

-

-
Parameters:
specular - the color that the specular color is copied from - later changes to the Color object will not be reflected in this Material.
-
-
-
- -

-getSpecular

-
-public Color getSpecular()
-
-
Retrieves the specular color from this Material. -

-

- -
Returns:
a new Color with components copied from this Material.
-
-
-
- -

-setShininess

-
-public void setShininess(float shininess)
-
-
Sets the shininess for this Material. Defaults to 0. -

-

-
Parameters:
shininess - the value to use for shininess
-
-
-
- -

-getShininess

-
-public float getShininess()
-
-
Retrieves the shininess from this Material. -

-

- -
Returns:
the shininess value
-
-
-
- -

-setEmissive

-
-public void setEmissive(Color emissive)
-
-
Sets this object's emissive color from an input Color. Default is {0,0,0,1}. -

-

-
Parameters:
emissive - the color that the specular color is copied from - later changes to the Color object will not be reflected in this Material.
-
-
-
- -

-getEmissive

-
-public Color getEmissive()
-
-
This retrieves the emissive color from this Material. -

-

- -
Returns:
a new Color with components copied from this Material.
-
-
-
- -

-setAmbient

-
-public void setAmbient(Color ambient)
-
-
Sets this object's ambient color from an input Color. Defaults to {0.2,0.2,0.2,1.0}. -

-

-
Parameters:
ambient - the color that the specular color is copied from - later changes to the Color object will not be reflected in this Material.
-
-
-
- -

-getAmbient

-
-public Color getAmbient()
-
-
This retrieves the ambient color from this Material. -

-

- -
Returns:
a new Color with components copied from this Material.
-
-
-
- -

-setDiffuse

-
-public void setDiffuse(Color diffuse)
-
-
Sets this object's diffuse color from an input Color. Defaults to {0.8,0.8,0.8,1.0}. -

-

-
Parameters:
diffuse - the color that the specular color is copied from - later changes to the Color object will not be reflected in this Material.
-
-
-
- -

-getDiffuse

-
-public Color getDiffuse()
-
-
This retrieves the diffuse color from this Material. -

-

- -
Returns:
a new Color with components copied from this Material.
-
-
-
- -

-applyGlobalAmbient

-
-public void applyGlobalAmbient(Color ambient)
-                        throws LightingException
-
-
Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the attached GL context. This applies for all lighted fragments on this GL context. -

-

-
Parameters:
ambient - the ambient color to be applied. -
Throws: -
sddm.lighting.LightingException - if no OpenGL Context is attached. -
LightingException
-
-
-
- -

-getGlobalAmbient

-
-public Color getGlobalAmbient()
-                       throws LightingException
-
-
Retrieves the GL_LIGHT_MODEL_AMBIENT color from the attached OpenGL context. -

-

- -
Returns:
the ambient color in the specified OpenGL Context. -
Throws: -
sddm.lighting.LightingException - if no OpenGL Context is attached. -
LightingException
-
-
-
- -

-applyGlobalAmbient

-
-public static void applyGlobalAmbient(javax.media.opengl.GL gl,
-                                      Color ambient)
-
-
Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the specified GL context. This applies for all lighted fragments on this GL context. -

-

-
Parameters:
gl - the OpenGL context to apply this color to.
ambient - the ambient color to be applied.
-
-
-
- -

-getGlobalAmbient

-
-public static Color getGlobalAmbient(javax.media.opengl.GL gl)
-
-
Retrieves the GL_LIGHT_MODEL_AMBIENT color from a specified OpenGL context. -

-

-
Parameters:
gl - the OpenGL Context from which to get the color. -
Returns:
the ambient color in the specified OpenGL Context.
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/MaterialPanel.html b/build/javadoc/net/java/joglutils/lighting/MaterialPanel.html deleted file mode 100644 index 947b8ee..0000000 --- a/build/javadoc/net/java/joglutils/lighting/MaterialPanel.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - - -MaterialPanel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.lighting -
-Class MaterialPanel

-
-java.lang.Object
-  extended by java.awt.Component
-      extended by java.awt.Container
-          extended by javax.swing.JComponent
-              extended by javax.swing.JPanel
-                  extended by net.java.joglutils.lighting.MaterialPanel
-
-
-
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
-
-
-
-
public class MaterialPanel
extends JPanel
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-  - - - - - - - - -
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-  - - - - - - - - -
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
- - - - - - - -
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
- - - - - - - -
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-  - - - - - - - - - - - - - -
-Constructor Summary
MaterialPanel() - -
-          Creates new form MaterialPanel
MaterialPanel(Material m) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- voidmatToPanel(Material m) - -
-           
- voidpanelToMat(Material m) - -
-           
- - - - - - - -
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
- - - - - - - -
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-MaterialPanel

-
-public MaterialPanel()
-
-
Creates new form MaterialPanel -

-

-
- -

-MaterialPanel

-
-public MaterialPanel(Material m)
-
-
- - - - - - - - -
-Method Detail
- -

-matToPanel

-
-public void matToPanel(Material m)
-
-
-
-
-
-
- -

-panelToMat

-
-public void panelToMat(Material m)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/ColorButton.html b/build/javadoc/net/java/joglutils/lighting/class-use/ColorButton.html deleted file mode 100644 index b422cf9..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/ColorButton.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.ColorButton - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.ColorButton

-
-No usage of net.java.joglutils.lighting.ColorButton -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/Light.html b/build/javadoc/net/java/joglutils/lighting/class-use/Light.html deleted file mode 100644 index 9ec70be..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/Light.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.Light - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.Light

-
- - - - - - - - - -
-Packages that use Light
net.java.joglutils.lighting  
-  -

- - - - - -
-Uses of Light in net.java.joglutils.lighting
-  -

- - - - - - - - - - - - - -
Methods in net.java.joglutils.lighting with parameters of type Light
- voidLightPanel.lightToPanel(Light l) - -
-           
- voidLightPanel.panelToLight(Light l) - -
-           
-  -

- - - - - - - - -
Constructors in net.java.joglutils.lighting with parameters of type Light
LightPanel(Light l) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/LightPanel.html b/build/javadoc/net/java/joglutils/lighting/class-use/LightPanel.html deleted file mode 100644 index 184d857..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/LightPanel.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.LightPanel - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.LightPanel

-
-No usage of net.java.joglutils.lighting.LightPanel -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/LightingException.html b/build/javadoc/net/java/joglutils/lighting/class-use/LightingException.html deleted file mode 100644 index 104fb44..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/LightingException.html +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.LightingException - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.LightingException

-
- - - - - - - - - -
-Packages that use LightingException
net.java.joglutils.lighting  
-  -

- - - - - -
-Uses of LightingException in net.java.joglutils.lighting
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in net.java.joglutils.lighting that throw LightingException
- voidMaterial.apply() - -
-          Sets the state on the attached OpenGL Context to match this Material.
- voidLight.apply(javax.media.opengl.GL gl) - -
-          Applies the settings on this Light to the specified OpenGL context, - using the light number stored in the Light.
- voidLight.apply(javax.media.opengl.GL gl, - int lightNumber) - -
-          Applies the settings on this Light to the specified OpenGL context, - using the requested light number.
- voidMaterial.applyGlobalAmbient(Color ambient) - -
-          Sets the light model parameter GL_LIGHT_MODEL_AMBIENT for the attached GL context.
- voidLight.disable(javax.media.opengl.GL gl) - -
-          Disables the light number stored in this Light on the specified OpenGL Context.
- voidLight.disable(javax.media.opengl.GL gl, - int lightNumber) - -
-          Disables the requested light on the specified OpenGL Context.
- voidLight.enable(javax.media.opengl.GL gl) - -
-          Enables the light number stored in this Light on the specified OpenGL Context.
- voidLight.enable(javax.media.opengl.GL gl, - int lightNumber) - -
-          Enables the requested light on the specified OpenGL Context.
- ColorMaterial.getGlobalAmbient() - -
-          Retrieves the GL_LIGHT_MODEL_AMBIENT color from the attached OpenGL context.
-static intLight.idToNum(int lightID) - -
-          Converts the specified OpenGL light ID number to a number
-static voidLight.initializePhongShader() - -
-          Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading) on the current OpenGL context.
-static voidLight.initializePhongShader(javax.media.opengl.GL gl) - -
-          Initializes Phong shading mode for this Light (instead of the fixed functionality Gouraud shading).
-static intLight.numToID(int lightNum) - -
-          Determines the OpenGL ID for the specified light number
-static voidLight.removePhongShader() - -
-          Removes the Phong Shader program from the current GL Context
-static voidLight.removePhongShader(javax.media.opengl.GL gl) - -
-          Removes the Phong Shader program from the specified GL Context
- voidMaterial.retrieve() - -
-          Sets this Material object from the attached OpenGL state.
- voidLight.retrieve(javax.media.opengl.GL gl) - -
-          Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the light number stored in the Light.
- voidLight.retrieve(javax.media.opengl.GL gl, - int lightNumber) - -
-          Reconfigures the settings on this Light from the state of the specified - OpenGL context, using the requested light number.
- voidLight.setAttachedGL(javax.media.opengl.GL gl) - -
-          Attached the specified OpenGL context to this object
- voidMaterial.setFace(int face) - -
-          Specifies the face for subsequent apply method calls to apply and retrieve the material settings.
- voidLight.setLightID(int lightID) - -
-          Sets the OpenGL light to use in subsequent method calls from a GL identifier
- voidLight.setLightNumber(int lightNumber) - -
-          Sets the number of the OpenGL light to use in subsequent method calls
- voidLight.setPhongShaded(boolean usePhongShading) - -
-          Sets if phong per-fragment shading (as opposed to fixed-functionality per-vertex shading) is to be used with this Light.
-  -

- - - - - - - - - - - -
Constructors in net.java.joglutils.lighting that throw LightingException
Light(javax.media.opengl.GL gl) - -
-          Creates a new instance of Light with default settings attached to the specified GL Context
Light(javax.media.opengl.GL gl, - int lightNumber) - -
-          Creates a new instance of Light with default settings attached to the specified GL Context with an explicit light number
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/Material.html b/build/javadoc/net/java/joglutils/lighting/class-use/Material.html deleted file mode 100644 index 12f5a84..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/Material.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.Material - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.Material

-
- - - - - - - - - -
-Packages that use Material
net.java.joglutils.lighting  
-  -

- - - - - -
-Uses of Material in net.java.joglutils.lighting
-  -

- - - - - - - - - - - - - -
Methods in net.java.joglutils.lighting with parameters of type Material
- voidMaterialPanel.matToPanel(Material m) - -
-           
- voidMaterialPanel.panelToMat(Material m) - -
-           
-  -

- - - - - - - - -
Constructors in net.java.joglutils.lighting with parameters of type Material
MaterialPanel(Material m) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/class-use/MaterialPanel.html b/build/javadoc/net/java/joglutils/lighting/class-use/MaterialPanel.html deleted file mode 100644 index 6da7640..0000000 --- a/build/javadoc/net/java/joglutils/lighting/class-use/MaterialPanel.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.lighting.MaterialPanel - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.lighting.MaterialPanel

-
-No usage of net.java.joglutils.lighting.MaterialPanel -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/package-frame.html b/build/javadoc/net/java/joglutils/lighting/package-frame.html deleted file mode 100644 index 27779bc..0000000 --- a/build/javadoc/net/java/joglutils/lighting/package-frame.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - -net.java.joglutils.lighting - - - - - - - - - - - -net.java.joglutils.lighting - - - - -
-Classes  - -
-ColorButton -
-Light -
-LightPanel -
-Material -
-MaterialPanel
- - - - - - -
-Exceptions  - -
-LightingException
- - - - diff --git a/build/javadoc/net/java/joglutils/lighting/package-summary.html b/build/javadoc/net/java/joglutils/lighting/package-summary.html deleted file mode 100644 index eab0001..0000000 --- a/build/javadoc/net/java/joglutils/lighting/package-summary.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - -net.java.joglutils.lighting - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils.lighting -

- - - - - - - - - - - - - - - - - - - - - - - - - -
-Class Summary
ColorButton 
LightThis class encapsulates the settings for an OpenGL light.
LightPanel 
MaterialThis class encapsulates OpenGL material settings in an object-oriented interface.
MaterialPanel 
-  - -

- - - - - - - - - -
-Exception Summary
LightingException 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/package-tree.html b/build/javadoc/net/java/joglutils/lighting/package-tree.html deleted file mode 100644 index 87c281d..0000000 --- a/build/javadoc/net/java/joglutils/lighting/package-tree.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - -net.java.joglutils.lighting Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils.lighting -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/lighting/package-use.html b/build/javadoc/net/java/joglutils/lighting/package-use.html deleted file mode 100644 index 5be354c..0000000 --- a/build/javadoc/net/java/joglutils/lighting/package-use.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils.lighting - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils.lighting

-
- - - - - - - - - -
-Packages that use net.java.joglutils.lighting
net.java.joglutils.lighting  
-  -

- - - - - - - - - - - - - - -
-Classes in net.java.joglutils.lighting used by net.java.joglutils.lighting
Light - -
-          This class encapsulates the settings for an OpenGL light.
LightingException - -
-           
Material - -
-          This class encapsulates OpenGL material settings in an object-oriented interface.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/package-frame.html b/build/javadoc/net/java/joglutils/package-frame.html deleted file mode 100644 index 422372a..0000000 --- a/build/javadoc/net/java/joglutils/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -net.java.joglutils - - - - - - - - - - - -net.java.joglutils - - - - -
-Classes  - -
-GLJFrame -
-JPanelDialog
- - - - diff --git a/build/javadoc/net/java/joglutils/package-summary.html b/build/javadoc/net/java/joglutils/package-summary.html deleted file mode 100644 index 7e622d8..0000000 --- a/build/javadoc/net/java/joglutils/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -net.java.joglutils - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils -

- - - - - - - - - - - - - -
-Class Summary
GLJFrameA JFrame containing a heavyweight GLCanvas with a single attached GLEventListener.
JPanelDialogThis class is a basic encapsulation of a JPanel in a dialog.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/package-tree.html b/build/javadoc/net/java/joglutils/package-tree.html deleted file mode 100644 index b94d491..0000000 --- a/build/javadoc/net/java/joglutils/package-tree.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - -net.java.joglutils Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/package-use.html b/build/javadoc/net/java/joglutils/package-use.html deleted file mode 100644 index 5bb9324..0000000 --- a/build/javadoc/net/java/joglutils/package-use.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils

-
-No usage of net.java.joglutils -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/Main.html b/build/javadoc/net/java/joglutils/test3ds/Main.html deleted file mode 100644 index e5abe84..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/Main.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - -Main - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.test3ds -
-Class Main

-
-java.lang.Object
-  extended by net.java.joglutils.test3ds.Main
-
-
-
-
public class Main
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
Main() - -
-          Creates a new instance of Main
-  - - - - - - - - - - - -
-Method Summary
-static voidmain(String[] args) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Main

-
-public Main()
-
-
Creates a new instance of Main -

-

- - - - - - - - -
-Method Detail
- -

-main

-
-public static void main(String[] args)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/MyModel.html b/build/javadoc/net/java/joglutils/test3ds/MyModel.html deleted file mode 100644 index d3a2680..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/MyModel.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - - - -MyModel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -net.java.joglutils.test3ds -
-Class MyModel

-
-java.lang.Object
-  extended by net.java.joglutils.ThreeDS.Model3DS
-      extended by net.java.joglutils.test3ds.MyModel
-
-
-
-
public class MyModel
extends Model3DS
- - -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class net.java.joglutils.ThreeDS.Model3DS
loader, materials, objects
-  - - - - - - - - - - -
-Constructor Summary
MyModel() - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- booleanisLoaded() - -
-           
- booleanload(javax.media.opengl.GLAutoDrawable gLDrawable, - String file) - -
-           
- voidrender(javax.media.opengl.GLAutoDrawable gLDrawable) - -
-           
- - - - - - - -
Methods inherited from class net.java.joglutils.ThreeDS.Model3DS
addMaterial, addObject, getMaterial, getNumberOfMaterials, getNumberOfObjects, getObject, load
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-MyModel

-
-public MyModel()
-
-
- - - - - - - - -
-Method Detail
- -

-isLoaded

-
-public boolean isLoaded()
-
-
-
-
-
-
- -

-load

-
-public boolean load(javax.media.opengl.GLAutoDrawable gLDrawable,
-                    String file)
-
-
-
-
-
-
- -

-render

-
-public void render(javax.media.opengl.GLAutoDrawable gLDrawable)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/class-use/Main.html b/build/javadoc/net/java/joglutils/test3ds/class-use/Main.html deleted file mode 100644 index 270413e..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/class-use/Main.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.test3ds.Main - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.test3ds.Main

-
-No usage of net.java.joglutils.test3ds.Main -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/class-use/MyModel.html b/build/javadoc/net/java/joglutils/test3ds/class-use/MyModel.html deleted file mode 100644 index 663c1ff..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/class-use/MyModel.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class net.java.joglutils.test3ds.MyModel - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
net.java.joglutils.test3ds.MyModel

-
-No usage of net.java.joglutils.test3ds.MyModel -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/package-frame.html b/build/javadoc/net/java/joglutils/test3ds/package-frame.html deleted file mode 100644 index 2a0cbf8..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -net.java.joglutils.test3ds - - - - - - - - - - - -net.java.joglutils.test3ds - - - - -
-Classes  - -
-Main -
-MyModel
- - - - diff --git a/build/javadoc/net/java/joglutils/test3ds/package-summary.html b/build/javadoc/net/java/joglutils/test3ds/package-summary.html deleted file mode 100644 index a73cf86..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -net.java.joglutils.test3ds - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-

-Package net.java.joglutils.test3ds -

- - - - - - - - - - - - - -
-Class Summary
Main 
MyModel 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/package-tree.html b/build/javadoc/net/java/joglutils/test3ds/package-tree.html deleted file mode 100644 index 494eb53..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/package-tree.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - -net.java.joglutils.test3ds Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package net.java.joglutils.test3ds -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/net/java/joglutils/test3ds/package-use.html b/build/javadoc/net/java/joglutils/test3ds/package-use.html deleted file mode 100644 index c0a7a23..0000000 --- a/build/javadoc/net/java/joglutils/test3ds/package-use.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Package net.java.joglutils.test3ds - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
net.java.joglutils.test3ds

-
-No usage of net.java.joglutils.test3ds -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/overview-frame.html b/build/javadoc/overview-frame.html deleted file mode 100644 index 4ef3264..0000000 --- a/build/javadoc/overview-frame.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - -Overview - - - - - - - - - - - - - - - -
-
- - - - - -
All Classes -

- -Packages -
-net.java.joglutils -
-net.java.joglutils.demos -
-net.java.joglutils.jogltext -
-net.java.joglutils.lighting -
-net.java.joglutils.test3ds -
-net.java.joglutils.ThreeDS -
-

- -

-  - - diff --git a/build/javadoc/overview-summary.html b/build/javadoc/overview-summary.html deleted file mode 100644 index 5f26aae..0000000 --- a/build/javadoc/overview-summary.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Packages
net.java.joglutils 
net.java.joglutils.demos 
net.java.joglutils.jogltext 
net.java.joglutils.lighting 
net.java.joglutils.test3ds 
net.java.joglutils.ThreeDS 
- -


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/overview-tree.html b/build/javadoc/overview-tree.html deleted file mode 100644 index a757e24..0000000 --- a/build/javadoc/overview-tree.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - -Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For All Packages

-
-
-
Package Hierarchies:
net.java.joglutils, net.java.joglutils.demos, net.java.joglutils.jogltext, net.java.joglutils.lighting, net.java.joglutils.test3ds, net.java.joglutils.ThreeDS
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/package-list b/build/javadoc/package-list deleted file mode 100644 index 2e42dfa..0000000 --- a/build/javadoc/package-list +++ /dev/null @@ -1,6 +0,0 @@ -net.java.joglutils -net.java.joglutils.ThreeDS -net.java.joglutils.demos -net.java.joglutils.jogltext -net.java.joglutils.lighting -net.java.joglutils.test3ds diff --git a/build/javadoc/resources/inherit.gif b/build/javadoc/resources/inherit.gif deleted file mode 100644 index c814867..0000000 Binary files a/build/javadoc/resources/inherit.gif and /dev/null differ diff --git a/build/javadoc/serialized-form.html b/build/javadoc/serialized-form.html deleted file mode 100644 index e1a8984..0000000 --- a/build/javadoc/serialized-form.html +++ /dev/null @@ -1,683 +0,0 @@ - - - - - - -Serialized Form - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Serialized Form

-
-
- - - - - -
-Package net.java.joglutils
- -

- - - - - -
-Class net.java.joglutils.GLJFrame extends JFrame implements Serializable
- -

- - - - - -
-Serialized Fields
- -

-listener

-
-javax.media.opengl.GLEventListener listener
-
-
-
-
-
-

-caps

-
-javax.media.opengl.GLCapabilities caps
-
-
-
-
-
-

-chooser

-
-javax.media.opengl.GLCapabilitiesChooser chooser
-
-
-
-
-
-

-animator

-
-com.sun.opengl.util.Animator animator
-
-
-
-
-
-

-contextToShareWith

-
-javax.media.opengl.GLContext contextToShareWith
-
-
-
-
-
-

-mainCanvas

-
-Canvas mainCanvas
-
-
-
-
- -

- - - - - -
-Class net.java.joglutils.JPanelDialog extends JDialog implements Serializable
- -

- - - - - -
-Serialized Fields
- -

-result

-
-boolean result
-
-
-
-
-
-

-acceptButton

-
-JButton acceptButton
-
-
-
-
-
-

-rejectButton

-
-JButton rejectButton
-
-
-
-
-
-

-mainPanel

-
-JPanel mainPanel
-
-
-
-
-
-

-numOfPanels

-
-int numOfPanels
-
-
-
-
-
- - - - - -
-Package net.java.joglutils.jogltext
- -

- - - - - -
-Class net.java.joglutils.jogltext.JogltextException extends RuntimeException implements Serializable
- -

-


- - - - - -
-Package net.java.joglutils.lighting
- -

- - - - - -
-Class net.java.joglutils.lighting.ColorButton extends JButton implements Serializable
- -

- -

- - - - - -
-Class net.java.joglutils.lighting.LightingException extends RuntimeException implements Serializable
- -

- -

- - - - - -
-Class net.java.joglutils.lighting.LightPanel extends JPanel implements Serializable
- -

- - - - - -
-Serialized Fields
- -

-ambientButton

-
-JButton ambientButton
-
-
-
-
-
-

-conCoeffField

-
-JFormattedTextField conCoeffField
-
-
-
-
-
-

-diffuseButton

-
-JButton diffuseButton
-
-
-
-
-
-

-jLabel1

-
-JLabel jLabel1
-
-
-
-
-
-

-jLabel10

-
-JLabel jLabel10
-
-
-
-
-
-

-jLabel11

-
-JLabel jLabel11
-
-
-
-
-
-

-jLabel12

-
-JLabel jLabel12
-
-
-
-
-
-

-jLabel13

-
-JLabel jLabel13
-
-
-
-
-
-

-jLabel2

-
-JLabel jLabel2
-
-
-
-
-
-

-jLabel3

-
-JLabel jLabel3
-
-
-
-
-
-

-jLabel4

-
-JLabel jLabel4
-
-
-
-
-
-

-jLabel5

-
-JLabel jLabel5
-
-
-
-
-
-

-jLabel6

-
-JLabel jLabel6
-
-
-
-
-
-

-jLabel7

-
-JLabel jLabel7
-
-
-
-
-
-

-jLabel8

-
-JLabel jLabel8
-
-
-
-
-
-

-jLabel9

-
-JLabel jLabel9
-
-
-
-
-
-

-lightNumField

-
-JTextField lightNumField
-
-
-
-
-
-

-linCoeffField

-
-JFormattedTextField linCoeffField
-
-
-
-
-
-

-posWField

-
-JFormattedTextField posWField
-
-
-
-
-
-

-posXField

-
-JFormattedTextField posXField
-
-
-
-
-
-

-posYField

-
-JFormattedTextField posYField
-
-
-
-
-
-

-posZField

-
-JFormattedTextField posZField
-
-
-
-
-
-

-quadCoeffField

-
-JFormattedTextField quadCoeffField
-
-
-
-
-
-

-specularButton

-
-JButton specularButton
-
-
-
-
-
-

-spotCutoffField

-
-JFormattedTextField spotCutoffField
-
-
-
-
-
-

-spotExponentField

-
-JFormattedTextField spotExponentField
-
-
-
-
-
-

-spotXField

-
-JFormattedTextField spotXField
-
-
-
-
-
-

-spotYField

-
-JFormattedTextField spotYField
-
-
-
-
-
-

-spotZField

-
-JFormattedTextField spotZField
-
-
-
-
- -

- - - - - -
-Class net.java.joglutils.lighting.MaterialPanel extends JPanel implements Serializable
- -

- - - - - -
-Serialized Fields
- -

-ambientButton

-
-JButton ambientButton
-
-
-
-
-
-

-diffuseButton

-
-JButton diffuseButton
-
-
-
-
-
-

-emissiveButton

-
-JButton emissiveButton
-
-
-
-
-
-

-jLabel1

-
-JLabel jLabel1
-
-
-
-
-
-

-shininessField

-
-JFormattedTextField shininessField
-
-
-
-
-
-

-specularButton

-
-JButton specularButton
-
-
-
-
- -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - diff --git a/build/javadoc/stylesheet.css b/build/javadoc/stylesheet.css deleted file mode 100644 index 14c3737..0000000 --- a/build/javadoc/stylesheet.css +++ /dev/null @@ -1,29 +0,0 @@ -/* Javadoc style sheet */ - -/* Define colors, fonts and other style attributes here to override the defaults */ - -/* Page background color */ -body { background-color: #FFFFFF } - -/* Headings */ -h1 { font-size: 145% } - -/* Table colors */ -.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ -.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ -.TableRowColor { background: #FFFFFF } /* White */ - -/* Font used in left-hand frame lists */ -.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } -.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } -.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } - -/* Navigation bar fonts and colors */ -.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */ -.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} - diff --git a/build/lib/swing-layout-1.0.jar b/build/lib/swing-layout-1.0.jar deleted file mode 100644 index a3fc956..0000000 Binary files a/build/lib/swing-layout-1.0.jar and /dev/null differ diff --git a/demos/src/jgudemos/BasicGLJFrameDemo.java b/demos/src/jgudemos/BasicGLJFrameDemo.java index e7d1858..8b4d329 100644 --- a/demos/src/jgudemos/BasicGLJFrameDemo.java +++ b/demos/src/jgudemos/BasicGLJFrameDemo.java @@ -37,6 +37,7 @@ package jgudemos; import net.java.joglutils.*; + import javax.media.opengl.*; /** @@ -55,16 +56,17 @@ public class BasicGLJFrameDemo { } public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); + gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); gl.glColor3f(1.0f,0.323f,0.8f); - gl.glBegin(GL.GL_TRIANGLE_STRIP); + gl.glBegin(GL2.GL_TRIANGLE_STRIP); gl.glVertex2d(0,0); gl.glVertex2d(0.5,1.0); gl.glVertex2d(-0.3,-0.9); gl.glEnd(); } - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { + public void dispose(GLAutoDrawable drawable) { } }); diff --git a/demos/src/jgudemos/BouncingText3D.java b/demos/src/jgudemos/BouncingText3D.java index 7ab16ab..4be64a3 100644 --- a/demos/src/jgudemos/BouncingText3D.java +++ b/demos/src/jgudemos/BouncingText3D.java @@ -18,15 +18,13 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.Random; -import javax.media.opengl.GL; -import javax.media.opengl.GLAutoDrawable; -import javax.media.opengl.GLCanvas; -import javax.media.opengl.GLEventListener; -import javax.media.opengl.glu.GLU; -import javax.media.opengl.glu.GLUquadric; +import javax.media.opengl.*; +import javax.media.opengl.awt.*; +import javax.media.opengl.glu.*; import javax.vecmath.Point3f; -import com.geofx.opengl.util.TextRenderer3D; +import net.java.joglutils.jogltext.TextRenderer3D; + import com.sun.opengl.util.Animator; /** @@ -53,7 +51,7 @@ public class BouncingText3D implements GLEventListener private ArrayList textInfo = new ArrayList(); private GLU glu = new GLU(); - protected GLUquadric QUADRIC = glu.gluNewQuadric(); + protected GLUquadric QUADRIC; /** * Main entry point for the app. The only argument that is parsed @@ -111,7 +109,9 @@ public class BouncingText3D implements GLEventListener */ public void init(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + QUADRIC = glu.gluNewQuadric(); + + GL2 gl = drawable.getGL().getGL2(); System.out.println("INIT GL IS: " + gl.getClass().getName()); System.out.println("init GL called. GL Class: " + gl.getClass().getName() @@ -121,18 +121,18 @@ public class BouncingText3D implements GLEventListener // Setup the drawing area and shading mode gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - gl.glShadeModel(GL.GL_SMOOTH); + gl.glShadeModel(GL2.GL_SMOOTH); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightAmbient, 0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightDiffuse, 0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPosition, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, LightAmbient, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, LightDiffuse, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, LightPosition, 0); - gl.glEnable(GL.GL_DEPTH_TEST); - gl.glDepthFunc(GL.GL_LESS); + gl.glEnable(GL2.GL_DEPTH_TEST); + gl.glDepthFunc(GL2.GL_LESS); - gl.glEnable(GL.GL_BLEND); - gl.glEnable(GL.GL_LINE_SMOOTH); - gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA); + gl.glEnable(GL2.GL_BLEND); + gl.glEnable(GL2.GL_LINE_SMOOTH); + gl.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA); // Note that it has to be a TRUETYPE font - not OpenType. Apparently, AWT can't // handle CFF glyphs @@ -153,18 +153,18 @@ public class BouncingText3D implements GLEventListener */ public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); if (height <= 0) // avoid a divide by zero error! height = 1; final float h = (float) width / (float) height; gl.glViewport(0, 0, width, height); - gl.glMatrixMode(GL.GL_PROJECTION); + gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); glu.gluPerspective(45.0f, h, 1.0, 20.0); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); } @@ -174,13 +174,13 @@ public class BouncingText3D implements GLEventListener */ public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); // Clear the drawing area - gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); + gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); - gl.glMaterialfv(GL.GL_FRONT, GL.GL_SPECULAR, mat_specular, 0); - gl.glMaterialfv(GL.GL_FRONT, GL.GL_SHININESS, mat_shininess, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_SPECULAR, mat_specular, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_SHININESS, mat_shininess, 0); // Reset the current matrix to the "identity" gl.glLoadIdentity(); @@ -191,8 +191,8 @@ public class BouncingText3D implements GLEventListener try { - gl.glEnable(GL.GL_LIGHTING); - gl.glEnable(GL.GL_LIGHT0); + gl.glEnable(GL2.GL_LIGHTING); + gl.glEnable(GL2.GL_LIGHT0); drawAxes(gl); @@ -202,10 +202,10 @@ public class BouncingText3D implements GLEventListener updateTextInfo( info ); - gl.glPushAttrib(GL.GL_TRANSFORM_BIT); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glPushAttrib(GL2.GL_TRANSFORM_BIT); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glPushMatrix(); - gl.glEnable( GL.GL_NORMALIZE); + gl.glEnable( GL2.GL_NORMALIZE); gl.glTranslatef(info.position.x, info.position.y, info.position.z); gl.glRotatef(info.angle.x, 1, 0, 0); @@ -214,7 +214,7 @@ public class BouncingText3D implements GLEventListener // System.out.println(" x,y,z: " + info.position.x + " " + info.position.y + " " + info.position.z + " angle: " + info.angle ); - gl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE, info.material, 0); + gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, info.material, 0); tr3.call(info.index); @@ -229,10 +229,10 @@ public class BouncingText3D implements GLEventListener } } - /** - * This method essentially always ignored. - */ - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) + /** + * No explicit cleanup necessary. + */ + public void dispose(GLAutoDrawable drawable) { } @@ -399,7 +399,7 @@ public class BouncingText3D implements GLEventListener } // draw some striped-pole axes for visdual reference - protected void drawAxes(GL gl) + protected void drawAxes(GL2 gl) { float[] mat_ambient_red = { 1.0f, 0.0f, 0.0f, 1.0f }; float[] mat_ambient_green = { 0.0f, 1.0f, 0.0f, 1.0f }; @@ -413,7 +413,7 @@ public class BouncingText3D implements GLEventListener } // draw a single striped pole axis - private void drawAxis(GL gl, int rot, float[] material ) + private void drawAxis(GL2 gl, int rot, float[] material ) { float[] mat_ambient_grey = { 0.5f, 0.5f, 0.5f, 1.0f }; final double AXIS_RADIUS = 0.01; @@ -434,9 +434,9 @@ public class BouncingText3D implements GLEventListener while ( pos < AXIS_HEIGHT/2.0f ) { if ((i++ & 1)==0) - gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, material, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0); else - gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, mat_ambient_grey, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, mat_ambient_grey, 0); glu.gluCylinder(QUADRIC, AXIS_RADIUS, AXIS_RADIUS, AXIS_STEP, 8, 1); gl.glTranslatef(0.0f, 0.0f, AXIS_STEP); diff --git a/demos/src/jgudemos/FontDrawerDemo.java b/demos/src/jgudemos/FontDrawerDemo.java index 8aab2b5..2bf0959 100644 --- a/demos/src/jgudemos/FontDrawerDemo.java +++ b/demos/src/jgudemos/FontDrawerDemo.java @@ -106,7 +106,7 @@ public class FontDrawerDemo { } public void init(GLAutoDrawable drawable) { - drawable.setGL(new DebugGL(drawable.getGL())); + drawable.setGL(new DebugGL2(drawable.getGL().getGL2())); glu = new GLU(); switch(argsFin.length) { case 6: @@ -127,7 +127,7 @@ public class FontDrawerDemo { dttf.setNormal(FontDrawer.NormalMode.FLAT); xrot = 0;yrot = 0;zrot = 0; - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); // lt = new net.java.joglutils.lighting.Light(gl); //mt = new net.java.joglutils.lighting.Material(gl); @@ -138,14 +138,14 @@ public class FontDrawerDemo { // lt.enable(); // lt.apply(); //mt.apply(); - gl.glColorMaterial( GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE ) ; + gl.glColorMaterial( GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE ) ; float[] mamb = {0,0,0,0}; - gl.glLightModelfv(GL.GL_LIGHT_MODEL_AMBIENT,mamb,0); + gl.glLightModelfv(GL2.GL_LIGHT_MODEL_AMBIENT,mamb,0); - gl.glEnable(GL.GL_DEPTH_TEST); - gl.glEnable(GL.GL_LIGHTING); - gl.glEnable(GL.GL_LIGHT0); - gl.glEnable(GL.GL_NORMALIZE); + gl.glEnable(GL2.GL_DEPTH_TEST); + gl.glEnable(GL2.GL_LIGHTING); + gl.glEnable(GL2.GL_LIGHT0); + gl.glEnable(GL2.GL_NORMALIZE); @@ -153,9 +153,9 @@ public class FontDrawerDemo { gl.glClearColor(0.3f,0.5f,0.2f,0); } - public void drawAxis(GL gl) { - gl.glDisable(GL.GL_LIGHTING); - gl.glBegin(GL.GL_LINES); + public void drawAxis(GL2 gl) { + gl.glDisable(GL2.GL_LIGHTING); + gl.glBegin(GL2.GL_LINES); gl.glColor3f(1,0,0); gl.glVertex3i(0,0,0); gl.glVertex3i(10,0,0); @@ -166,27 +166,27 @@ public class FontDrawerDemo { gl.glVertex3i(0,0,0); gl.glVertex3i(0,0,10); gl.glEnd(); - gl.glEnable(GL.GL_LIGHTING); + gl.glEnable(GL2.GL_LIGHTING); } public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); - gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); + GL2 gl = drawable.getGL().getGL2(); + gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); - gl.glMatrixMode(GL.GL_PROJECTION); + gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); //glu.gluPerspective(90,1,0.001,10); //gl.glFrustum(-1.5f,1.5f,-1.5f,1.5f,1,5); gl.glOrtho(-1.5,1.5,-1.5,1.5,-5,5); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); //Manual lighting activation before transform - gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, light_ambient,0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, light_diffuse,0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, light_specular,0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, light_position,0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, light_ambient,0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, light_diffuse,0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_SPECULAR, light_specular,0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, light_position,0); glu.gluLookAt(0,0,2,0,0,0,0,1,0); //drawAxis(gl); @@ -209,7 +209,10 @@ public class FontDrawerDemo { dttf.drawString(lowerStr.toString(),glu,gl,-0.8f,-0.8f,0); } - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { + /** + * No explicit cleanup necessary. + */ + public void dispose(GLAutoDrawable drawable) { } }; diff --git a/demos/src/jgudemos/TestRenderer3D.java b/demos/src/jgudemos/TestRenderer3D.java index a084b7c..2398520 100644 --- a/demos/src/jgudemos/TestRenderer3D.java +++ b/demos/src/jgudemos/TestRenderer3D.java @@ -7,7 +7,7 @@ */ package jgudemos; -import com.geofx.opengl.util.TextRenderer3D; +import net.java.joglutils.jogltext.TextRenderer3D; import com.sun.opengl.util.Animator; import java.awt.Font; @@ -16,11 +16,9 @@ import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.geom.Rectangle2D; -import javax.media.opengl.GL; -import javax.media.opengl.GLAutoDrawable; -import javax.media.opengl.GLCanvas; -import javax.media.opengl.GLEventListener; -import javax.media.opengl.glu.GLU; +import javax.media.opengl.*; +import javax.media.opengl.awt.*; +import javax.media.opengl.glu.*; /** * TestRenderer3D @@ -79,22 +77,22 @@ public class TestRenderer3D implements GLEventListener */ public void init(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); System.out.println("init GL called. GL Class: " + gl.getClass().getName() + " and this: " + this.getClass().getName()); gl.setSwapInterval(1); gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - gl.glShadeModel(GL.GL_SMOOTH); + gl.glShadeModel(GL2.GL_SMOOTH); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightAmbient, 0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightDiffuse, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, LightAmbient, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, LightDiffuse, 0); - gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPosition, 0); + gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, LightPosition, 0); - gl.glEnable(GL.GL_DEPTH_TEST); - gl.glDepthFunc(GL.GL_LESS); + gl.glEnable(GL2.GL_DEPTH_TEST); + gl.glDepthFunc(GL2.GL_LESS); // Be sure to use a font name on your system otherwise you will get the default tr3 = new TextRenderer3D(new Font("Times New Roman", Font.TRUETYPE_FONT, 3), 0.25f); @@ -106,7 +104,7 @@ public class TestRenderer3D implements GLEventListener */ public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); GLU glu = new GLU(); if (height <= 0) // avoid a divide by zero error! @@ -114,10 +112,10 @@ public class TestRenderer3D implements GLEventListener final float h = (float) width / (float) height; gl.glViewport(0, 0, width, height); - gl.glMatrixMode(GL.GL_PROJECTION); + gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); glu.gluPerspective(45.0f, h, 1.0, 20.0); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); } @@ -127,10 +125,10 @@ public class TestRenderer3D implements GLEventListener */ public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); + GL2 gl = drawable.getGL().getGL2(); // Clear the drawing area - gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); + gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); // Reset the current matrix to the "identity" gl.glLoadIdentity(); @@ -144,12 +142,12 @@ public class TestRenderer3D implements GLEventListener float offY = (float) rect.getCenterY(); float offZ = tr3.getDepth() / 2.0f; - gl.glEnable(GL.GL_LIGHTING); - gl.glEnable(GL.GL_LIGHT0); + gl.glEnable(GL2.GL_LIGHTING); + gl.glEnable(GL2.GL_LIGHT0); - gl.glMaterialfv(GL.GL_FRONT, GL.GL_SPECULAR, mat_specular, 0); - gl.glMaterialfv(GL.GL_FRONT, GL.GL_SHININESS, mat_shininess, 0); - gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, mat_ambient_magenta, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_SPECULAR, mat_specular, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_SHININESS, mat_shininess, 0); + gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, mat_ambient_magenta, 0); tr3.draw(str, -offX, offY, -offZ, 1.0f); @@ -157,10 +155,10 @@ public class TestRenderer3D implements GLEventListener gl.glFlush(); } - /** - * This method essentially always ignored. - */ - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) + /** + * No explicit cleanup necessary. + */ + public void dispose(GLAutoDrawable drawable) { } } \ No newline at end of file diff --git a/make/build.xml b/make/build.xml index 19247ce..bd65149 100644 --- a/make/build.xml +++ b/make/build.xml @@ -10,22 +10,47 @@ - built into its build directory. --> - - - + + + + + - - + + + + + + + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + + + + + + + - + @@ -58,7 +102,7 @@ - + diff --git a/make/lib/jogl-demos-util.jar b/make/lib/jogl-demos-util.jar new file mode 100644 index 0000000..fb139f9 Binary files /dev/null and b/make/lib/jogl-demos-util.jar differ diff --git a/make/lib/swing-layout-1.0.jar b/make/lib/swing-layout-1.0.jar new file mode 100644 index 0000000..a3fc956 Binary files /dev/null and b/make/lib/swing-layout-1.0.jar differ diff --git a/src/net/java/joglutils/GLJFrame.java b/src/net/java/joglutils/GLJFrame.java index 59a1677..0746d5f 100644 --- a/src/net/java/joglutils/GLJFrame.java +++ b/src/net/java/joglutils/GLJFrame.java @@ -37,6 +37,7 @@ package net.java.joglutils; import javax.media.opengl.*; +import javax.media.opengl.awt.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; @@ -69,7 +70,7 @@ public class GLJFrame extends JFrame { public GLJFrame(String title, GLEventListener listener) { super(title); this.listener = listener; - this.caps = new GLCapabilities(); + this.caps = new GLCapabilities(GLProfile.getDefault()); this.chooser = null; //can be null because that will choose the default initComponents(); ((GLCanvas)mainCanvas).addGLEventListener(listener); diff --git a/src/net/java/joglutils/jogltext/FontDrawer.java b/src/net/java/joglutils/jogltext/FontDrawer.java index faaac43..866ab0e 100644 --- a/src/net/java/joglutils/jogltext/FontDrawer.java +++ b/src/net/java/joglutils/jogltext/FontDrawer.java @@ -157,7 +157,7 @@ public class FontDrawer { * @param str the string to render. * @param gl the OpenGL context in which to render the text. */ - public void drawString(String str, GL gl) { + public void drawString(String str, GL2 gl) { drawString(str,new GLU(),gl); } @@ -168,7 +168,7 @@ public class FontDrawer { * @param glu a GLU instance to use for the text rendering (provided to prevent continuous re-instantiation of a GLU object) * @param gl the OpenGL context in which to render the text. */ - public void drawString(String str, GLU glu, GL gl) { + public void drawString(String str, GLU glu, GL2 gl) { GlyphVector gv = font.createGlyphVector( new FontRenderContext(new AffineTransform(), true, true), new StringCharacterIterator(str)); @@ -211,7 +211,7 @@ public class FontDrawer { * @param str the string to render. * @param gl the OpenGL context in which to render the text. */ - public void drawString(String str, GL gl, float xOff, float yOff, float zOff) { + public void drawString(String str, GL2 gl, float xOff, float yOff, float zOff) { drawString(str,new GLU(),gl,xOff,yOff,zOff); } @@ -225,9 +225,9 @@ public class FontDrawer { * @param glu a GLU instance to use for the text rendering (provided to prevent continuous re-instantiation of a GLU object) * @param gl the OpenGL context in which to render the text. */ - public void drawString(String str, GLU glu, GL gl, float xOff, float yOff, float zOff) { - gl.glPushAttrib(GL.GL_TRANSFORM_BIT); - gl.glMatrixMode(GL.GL_MODELVIEW); + public void drawString(String str, GLU glu, GL2 gl, float xOff, float yOff, float zOff) { + gl.glPushAttrib(GL2.GL_TRANSFORM_BIT); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glPushMatrix(); gl.glTranslatef(xOff,yOff,zOff); this.drawString(str,glu,gl); @@ -235,11 +235,11 @@ public class FontDrawer { gl.glPopAttrib(); } - private void tesselateFace(GLU glu, GL gl, PathIterator pi, int windingRule, boolean justBoundary) { + private void tesselateFace(GLU glu, GL2 gl, PathIterator pi, int windingRule, boolean justBoundary) { tesselateFace(glu,gl,pi,windingRule,justBoundary,0); } - private void tesselateFace(GLU glu, GL gl, PathIterator pi, int windingRule, boolean justBoundary,double tessZ) { + private void tesselateFace(GLU glu, GL2 gl, PathIterator pi, int windingRule, boolean justBoundary,double tessZ) { GLUtessellatorCallback aCallback = new GLUtesselatorCallbackImpl(gl); GLUtessellator tess = glu.gluNewTess(); @@ -261,9 +261,9 @@ public class FontDrawer { } if (justBoundary) { - glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL.GL_TRUE); + glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL2.GL_TRUE); } else { - glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL.GL_FALSE); + glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL2.GL_FALSE); } glu.gluTessBeginPolygon(tess, (double[])null); @@ -289,19 +289,19 @@ public class FontDrawer { glu.gluDeleteTess(tess); } - private void drawSidesNoNorm(GL gl, PathIterator pi, boolean justBoundary,float tessZ) { + private void drawSidesNoNorm(GL2 gl, PathIterator pi, boolean justBoundary,float tessZ) { //TODO: texture coords if (justBoundary) - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_LINE); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_LINE); else - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_FILL); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_FILL); for(float[] coords = new float[6];!pi.isDone();pi.next()) { float[] currRender = new float[3]; switch(pi.currentSegment(coords)) { case PathIterator.SEG_MOVETO: - gl.glBegin(GL.GL_QUAD_STRIP); + gl.glBegin(GL2.GL_QUAD_STRIP); currRender[0] = coords[0]; currRender[1] = coords[1]; currRender[2] = 0; @@ -332,20 +332,20 @@ public class FontDrawer { } } - private void drawSidesFlatNorm(GL gl, PathIterator pi, boolean justBoundary,float tessZ) { + private void drawSidesFlatNorm(GL2 gl, PathIterator pi, boolean justBoundary,float tessZ) { //TODO: texture coords if (justBoundary) - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_LINE); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_LINE); else - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_FILL); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_FILL); float[] lastCoord = new float[3]; float[] firstCoord = new float[3]; for(float[] coords = new float[6];!pi.isDone();pi.next()) { switch(pi.currentSegment(coords)) { case PathIterator.SEG_MOVETO: - gl.glBegin(GL.GL_QUADS); + gl.glBegin(GL2.GL_QUADS); lastCoord[0] = coords[0]; lastCoord[1] = coords[1]; firstCoord[0] = coords[0]; @@ -386,15 +386,15 @@ public class FontDrawer { } - private void drawSidesAvgNorm(GL gl, PathIterator pi, boolean justBoundary,float tessZ) { + private void drawSidesAvgNorm(GL2 gl, PathIterator pi, boolean justBoundary,float tessZ) { //TODO: improve performance with some form of caching? //TODO: texture coords //TODO: check last coord - might not quite be correct? if (justBoundary) - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_LINE); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_LINE); else - gl.glPolygonMode(GL.GL_FRONT_AND_BACK,GL.GL_FILL); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK,GL2.GL_FILL); float[] firstCoord = null; @@ -408,7 +408,7 @@ public class FontDrawer { firstCoord = new float[3]; firstCoord[0] = coords[0]; firstCoord[1] = coords[1]; - gl.glBegin(GL.GL_QUAD_STRIP); + gl.glBegin(GL2.GL_QUAD_STRIP); break; case PathIterator.SEG_LINETO: if (secondCoord == null) { @@ -478,9 +478,9 @@ public class FontDrawer { } private class GLUtesselatorCallbackImpl extends javax.media.opengl.glu.GLUtessellatorCallbackAdapter { - private GL gl; + private GL2 gl; - public GLUtesselatorCallbackImpl(GL gl) { + public GLUtesselatorCallbackImpl(GL2 gl) { this.gl = gl; } diff --git a/src/net/java/joglutils/jogltext/TextRenderer3D.java b/src/net/java/joglutils/jogltext/TextRenderer3D.java index 80f89d8..ec78ba9 100644 --- a/src/net/java/joglutils/jogltext/TextRenderer3D.java +++ b/src/net/java/joglutils/jogltext/TextRenderer3D.java @@ -55,10 +55,8 @@ import java.text.StringCharacterIterator; import java.util.ArrayList; import java.util.Iterator; -import javax.media.opengl.GL; -import javax.media.opengl.glu.GLU; -import javax.media.opengl.glu.GLUtessellator; -import javax.media.opengl.glu.GLUtessellatorCallback; +import javax.media.opengl.*; +import javax.media.opengl.glu.*; import javax.vecmath.Vector3f; /** @@ -84,7 +82,7 @@ public class TextRenderer3D private Vector3f normal = new Vector3f(); private GLU glu = new GLU(); - private GL gl = GLU.getCurrentGL(); + private GL2 gl = GLU.getCurrentGL().getGL2(); private int lastIndex = -1; private ArrayList listIndex = new ArrayList(); @@ -225,10 +223,10 @@ public class TextRenderer3D public void draw( String str, float xOff, float yOff, float zOff, float scaleFactor ) { - gl.glPushAttrib(GL.GL_TRANSFORM_BIT); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glPushAttrib(GL2.GL_TRANSFORM_BIT); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glPushMatrix(); - gl.glEnable( GL.GL_NORMALIZE); + gl.glEnable( GL2.GL_NORMALIZE); gl.glScalef(scaleFactor, scaleFactor, scaleFactor); gl.glTranslatef(xOff, yOff, zOff); @@ -295,7 +293,7 @@ public class TextRenderer3D public int compile( String str, float xOff, float yOff, float zOff, float scaleFactor ) { int index = gl.glGenLists(1); - gl.glNewList( index, GL.GL_COMPILE); + gl.glNewList( index, GL2.GL_COMPILE); draw( str, xOff, yOff, zOff, scaleFactor); gl.glEndList(); @@ -312,7 +310,7 @@ public class TextRenderer3D public int compile( String str ) { int index = gl.glGenLists(1); - gl.glNewList( index, GL.GL_COMPILE); + gl.glNewList( index, GL2.GL_COMPILE); draw( str ); gl.glEndList(); @@ -400,8 +398,8 @@ public class TextRenderer3D */ public Rectangle2D getBounds( String str, float scaleFactor ) { - gl.glPushAttrib(GL.GL_TRANSFORM_BIT); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glPushAttrib(GL2.GL_TRANSFORM_BIT); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glPushMatrix(); gl.glScalef(scaleFactor, scaleFactor, scaleFactor); @@ -420,12 +418,12 @@ public class TextRenderer3D // construct the sides of each glyph by walking around and extending each vertex // out to the depth of the extrusion - private void drawSides(GL gl, PathIterator pi, boolean justBoundary, float depth) + private void drawSides(GL2 gl, PathIterator pi, boolean justBoundary, float depth) { if (justBoundary) - gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_LINE); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_LINE); else - gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL); + gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL); float[] lastCoord = new float[3]; float[] firstCoord = new float[3]; @@ -436,7 +434,7 @@ public class TextRenderer3D switch (pi.currentSegment(coords)) { case PathIterator.SEG_MOVETO: - gl.glBegin(GL.GL_QUADS); + gl.glBegin(GL2.GL_QUADS); lastCoord[0] = coords[0]; lastCoord[1] = coords[1]; firstCoord[0] = coords[0]; @@ -487,7 +485,7 @@ public class TextRenderer3D } // simple convenience for calculating and setting the normal - private void setNormal ( GL gl, float x1, float y1, float z1, float x2, float y2, float z2 ) + private void setNormal ( GL2 gl, float x1, float y1, float z1, float x2, float y2, float z2 ) { vecA.set( x1, y1, z1); vecB.set( x2, y2, z2); @@ -497,7 +495,7 @@ public class TextRenderer3D } // routine that tesselates the current set of glyphs - private void tesselateFace(GLU glu, GL gl, PathIterator pi, boolean justBoundary, double tessZ) + private void tesselateFace(GLU glu, GL2 gl, PathIterator pi, boolean justBoundary, double tessZ) { GLUtessellatorCallback aCallback = new GLUtesselatorCallbackImpl(gl); GLUtessellator tess = glu.gluNewTess(); @@ -516,9 +514,9 @@ public class TextRenderer3D glu.gluTessProperty(tess, GLU.GLU_TESS_WINDING_RULE, GLU.GLU_TESS_WINDING_NONZERO); if (justBoundary) - glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL.GL_TRUE); + glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL2.GL_TRUE); else - glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL.GL_FALSE); + glu.gluTessProperty(tess, GLU.GLU_TESS_BOUNDARY_ONLY, GL2.GL_FALSE); glu.gluTessBeginPolygon(tess, (double[]) null); @@ -550,9 +548,9 @@ public class TextRenderer3D // Private class that implements the required callbacks for the tesselator private class GLUtesselatorCallbackImpl extends javax.media.opengl.glu.GLUtessellatorCallbackAdapter { - private GL gl; + private GL2 gl; - public GLUtesselatorCallbackImpl(GL gl) + public GLUtesselatorCallbackImpl(GL2 gl) { this.gl = gl; } @@ -578,7 +576,7 @@ public class TextRenderer3D //--------------- diagnostic utilities ----------------------------------------- /* - private void dumpShape(GL gl, GeneralPath path) + private void dumpShape(GL2 gl, GeneralPath path) { float[] coords = new float[6]; int count = 1; diff --git a/src/net/java/joglutils/lighting/Light.java b/src/net/java/joglutils/lighting/Light.java index 65b8690..07b780a 100644 --- a/src/net/java/joglutils/lighting/Light.java +++ b/src/net/java/joglutils/lighting/Light.java @@ -57,7 +57,7 @@ public class Light { static HashMap shaderBuiltin = new HashMap(); static HashMap shaderProgNums = new HashMap(); - private GL attachedGL; + private GL2 attachedGL; private int lightNumber; //Light defaults are determined by constructor @@ -111,7 +111,7 @@ public class Light { * @param gl the OpenGL context to attach the light to * @throws net.java.joglutils.lighting.LightingException if the light number is invalid or is already in use by another Light. Light is detached from any OpenGL Context. */ - public Light(GL gl) throws LightingException { + public Light(GL2 gl) throws LightingException { this(); this.attachedGL = gl; @@ -130,7 +130,7 @@ public class Light { * @param lightNumber the light number to be used (must be on [0,7]) * @throws net.java.joglutils.lighting.LightingException if the light number is invalid or is already in use by another Light. Light is detached from any OpenGL Context. */ - public Light(GL gl, int lightNumber) throws LightingException { + public Light(GL2 gl, int lightNumber) throws LightingException { this(); if (lightNumber < 0 || lightNumber > maxNumberOfLightsInGL(gl)) throw new LightingException("Requested light not availible in specified OpenGL context"); @@ -201,7 +201,7 @@ public class Light { * @param gl the OpenGL context to attach this to * @throws net.java.joglutils.lighting.LightingException if the specified context has no free lights. Light is detached from any OpenGL Context. */ - public void setAttachedGL(GL gl) throws LightingException { + public void setAttachedGL(GL2 gl) throws LightingException { this.unassignLightNumber(this.attachedGL,this.lightNumber); if(!this.hasFreeLights(gl)) { this.attachedGL = null; @@ -275,7 +275,7 @@ public class Light { * @param gl the OpenGL context to use. * @throws net.java.joglutils.lighting.LightingException if the light number stored in this Light is invalid on the specified context. */ - public void apply(GL gl) throws LightingException { + public void apply(GL2 gl) throws LightingException { apply(gl,this.lightNumber); } /** @@ -284,7 +284,7 @@ public class Light { * @param gl the OpenGL context to use. * @throws net.java.joglutils.lighting.LightingException if the light number stored in this Light is invalid on the specified context. */ - public void retrieve(GL gl) throws LightingException { + public void retrieve(GL2 gl) throws LightingException { retrieve(gl,this.lightNumber); } @@ -293,7 +293,7 @@ public class Light { * @param gl the OpenGL context to use. * @throws net.java.joglutils.lighting.LightingException if the light number stored in this Light is invalid on the specified context. */ - public void enable(GL gl) throws LightingException { + public void enable(GL2 gl) throws LightingException { enable(gl,this.lightNumber); } /** @@ -301,7 +301,7 @@ public class Light { * @param gl the OpenGL context to use. * @throws net.java.joglutils.lighting.LightingException if the light number stored in this Light is invalid on the specified context. */ - public void disable(GL gl) throws LightingException { + public void disable(GL2 gl) throws LightingException { disable(gl,this.lightNumber); } /** @@ -311,30 +311,30 @@ public class Light { * @param lightNumber the number of the light to use (should be on [0,7]). * @throws net.java.joglutils.lighting.LightingException if the requested light is not valid on the specified context. */ - public void apply(GL gl, int lightNumber) throws LightingException { + public void apply(GL2 gl, int lightNumber) throws LightingException { if(!this.isLightNumberValid(gl, lightNumber)) throw new LightingException("attempted to apply Light settings to invalid lightNumber for the requested OpenGL context"); int lightID = numToID(lightNumber); //set color components - gl.glLightfv(lightID,GL.GL_AMBIENT,ambient,0); - gl.glLightfv(lightID,GL.GL_DIFFUSE,diffuse,0); - gl.glLightfv(lightID,GL.GL_SPECULAR,specular,0); + gl.glLightfv(lightID,GL2.GL_AMBIENT,ambient,0); + gl.glLightfv(lightID,GL2.GL_DIFFUSE,diffuse,0); + gl.glLightfv(lightID,GL2.GL_SPECULAR,specular,0); //OpenGL position information is contanied in Light lightPosition and light distance float[] position = new float[4]; position[0] = lightPosition[0]; position[1] = lightPosition[1]; position[2] = lightPosition[2]; position[3] = lightW; - gl.glLightfv(lightID,GL.GL_POSITION,position,0); + gl.glLightfv(lightID,GL2.GL_POSITION,position,0); //set other parameters - gl.glLightfv(lightID,GL.GL_SPOT_DIRECTION,spotDirection,0); - gl.glLightf(lightID,GL.GL_SPOT_CUTOFF,spotCutoff); - gl.glLightf(lightID,GL.GL_SPOT_EXPONENT,spotExponent); - gl.glLightf(lightID,GL.GL_CONSTANT_ATTENUATION,constantAttenuation); - gl.glLightf(lightID,GL.GL_LINEAR_ATTENUATION,linearAttenuation); - gl.glLightf(lightID,GL.GL_QUADRATIC_ATTENUATION,quadraticAttenuation); + gl.glLightfv(lightID,GL2.GL_SPOT_DIRECTION,spotDirection,0); + gl.glLightf(lightID,GL2.GL_SPOT_CUTOFF,spotCutoff); + gl.glLightf(lightID,GL2.GL_SPOT_EXPONENT,spotExponent); + gl.glLightf(lightID,GL2.GL_CONSTANT_ATTENUATION,constantAttenuation); + gl.glLightf(lightID,GL2.GL_LINEAR_ATTENUATION,linearAttenuation); + gl.glLightf(lightID,GL2.GL_QUADRATIC_ATTENUATION,quadraticAttenuation); this.lightNumber = lightNumber; } @@ -345,7 +345,7 @@ public class Light { * @param lightNumber the number of the light to use (should be on [0,7]). * @throws net.java.joglutils.lighting.LightingException if the requested light is not valid on the specified context. */ - public void retrieve(GL gl, int lightNumber) throws LightingException{ + public void retrieve(GL2 gl, int lightNumber) throws LightingException{ if(!this.isLightNumberValid(gl, lightNumber)) throw new LightingException("attempted to retrieve Light settings to invalid lightNumber for the requested OpenGL context"); @@ -353,29 +353,29 @@ public class Light { FloatBuffer buff = FloatBuffer.allocate(24); //get color components - 4 each - gl.glGetLightfv(lightID,GL.GL_AMBIENT,buff); + gl.glGetLightfv(lightID,GL2.GL_AMBIENT,buff); buff.get(this.ambient); - gl.glGetLightfv(lightID,GL.GL_DIFFUSE,buff); + gl.glGetLightfv(lightID,GL2.GL_DIFFUSE,buff); buff.get(this.diffuse); - gl.glGetLightfv(lightID,GL.GL_SPECULAR,buff); + gl.glGetLightfv(lightID,GL2.GL_SPECULAR,buff); buff.get(this.specular); //get light position - 4 (including distance) - gl.glGetLightfv(lightID,GL.GL_POSITION,buff); + gl.glGetLightfv(lightID,GL2.GL_POSITION,buff); buff.get(this.lightPosition); this.lightW = buff.get(); //get spot direction- 3 - gl.glGetLightfv(lightID,GL.GL_SPOT_DIRECTION,buff); + gl.glGetLightfv(lightID,GL2.GL_SPOT_DIRECTION,buff); buff.get(this.spotDirection); //get individual floats - 1 each - gl.glGetLightfv(lightID,GL.GL_SPOT_CUTOFF,buff); + gl.glGetLightfv(lightID,GL2.GL_SPOT_CUTOFF,buff); this.spotCutoff = buff.get(); - gl.glGetLightfv(lightID,GL.GL_SPOT_EXPONENT,buff); + gl.glGetLightfv(lightID,GL2.GL_SPOT_EXPONENT,buff); this.spotExponent = buff.get(); - gl.glGetLightfv(lightID,GL.GL_CONSTANT_ATTENUATION,buff); + gl.glGetLightfv(lightID,GL2.GL_CONSTANT_ATTENUATION,buff); this.constantAttenuation = buff.get(); - gl.glGetLightfv(lightID,GL.GL_LINEAR_ATTENUATION,buff); + gl.glGetLightfv(lightID,GL2.GL_LINEAR_ATTENUATION,buff); this.linearAttenuation = buff.get(); - gl.glGetLightfv(lightID,GL.GL_QUADRATIC_ATTENUATION,buff); + gl.glGetLightfv(lightID,GL2.GL_QUADRATIC_ATTENUATION,buff); this.quadraticAttenuation = buff.get(); this.lightNumber = lightNumber; @@ -386,7 +386,7 @@ public class Light { * @param lightNumber the number of the light to use (should be on [0,7]). * @throws net.java.joglutils.lighting.LightingException if the requested light is not valid on the specified context. */ - public void enable(GL gl, int lightNumber) throws LightingException { + public void enable(GL2 gl, int lightNumber) throws LightingException { if(!this.isLightNumberValid(gl, lightNumber)) throw new LightingException("attempted to enable Light on with an invalid lightNumber for the requested OpenGL context"); gl.glEnable(numToID(lightNumber)); @@ -440,7 +440,7 @@ public class Light { if (result != null) { int lightID = result+lightNumber; java.nio.IntBuffer buffer = java.nio.IntBuffer.allocate(1); - gl.glGetIntegerv(GL.GL_CURRENT_PROGRAM,buffer); + gl.glGetIntegerv(GL2.GL_CURRENT_PROGRAM,buffer); int currProgram = buffer.get(); if (currProgram == lightID) @@ -455,7 +455,7 @@ public class Light { * @param lightNumber the number of the light to use (should be on [0,7]). * @throws net.java.joglutils.lighting.LightingException if the requested light is not valid on the specified context. */ - public void disable(GL gl, int lightNumber) throws LightingException { + public void disable(GL2 gl, int lightNumber) throws LightingException { if(!this.isLightNumberValid(gl, lightNumber)) throw new LightingException("attempted to disable Light on with an invalid lightNumber for the requested OpenGL context"); gl.glDisable(numToID(lightNumber)); @@ -479,7 +479,7 @@ public class Light { public void setAmbient(Color ambient) { this.ambient = ambient.getRGBComponents(null); if (this.attachedGL != null) - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_AMBIENT,this.ambient,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_AMBIENT,this.ambient,0); } /** @@ -497,7 +497,7 @@ public class Light { public void setDiffuse(Color diffuse) { this.diffuse = diffuse.getRGBComponents(null); if (this.attachedGL != null) - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_DIFFUSE,this.diffuse,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_DIFFUSE,this.diffuse,0); } @@ -516,7 +516,7 @@ public class Light { public void setSpecular(Color specular) { this.specular = specular.getRGBComponents(null); if (this.attachedGL != null) - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_SPECULAR,this.specular,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_SPECULAR,this.specular,0); } /** @@ -540,7 +540,7 @@ public class Light { position[1] = lightPosition[1]; position[2] = lightPosition[2]; position[3] = this.lightW; - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_POSITION,position,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_POSITION,position,0); } this.lightPosition = lightPosition.clone(); } @@ -572,7 +572,7 @@ public class Light { */ public void setSpotDirection(float[] spotDirection) { if (this.attachedGL != null) - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_SPOT_DIRECTION,spotDirection,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_SPOT_DIRECTION,spotDirection,0); this.spotDirection = spotDirection.clone(); } @@ -608,7 +608,7 @@ public class Light { position[1] = this.lightPosition[1]; position[2] = this.lightPosition[2]; position[3] = lightW; - this.attachedGL.glLightfv(numToID(lightNumber),GL.GL_POSITION,position,0); + this.attachedGL.glLightfv(numToID(lightNumber),GL2.GL_POSITION,position,0); } this.lightW = lightW; } @@ -633,7 +633,7 @@ public class Light { */ public void setSpotCutoff(float spotCutoff) { if (this.attachedGL != null) - this.attachedGL.glLightf(numToID(lightNumber),GL.GL_SPOT_CUTOFF,spotCutoff); + this.attachedGL.glLightf(numToID(lightNumber),GL2.GL_SPOT_CUTOFF,spotCutoff); this.spotCutoff = spotCutoff; } @@ -651,7 +651,7 @@ public class Light { */ public void setSpotExponent(float spotExponent) { if (this.attachedGL != null) - this.attachedGL.glLightf(numToID(lightNumber),GL.GL_SPOT_EXPONENT,spotExponent); + this.attachedGL.glLightf(numToID(lightNumber),GL2.GL_SPOT_EXPONENT,spotExponent); this.spotExponent = spotExponent; } @@ -670,7 +670,7 @@ public class Light { */ public void setConstantAttenuation(float constantAttenuation) { if (this.attachedGL != null) - this.attachedGL.glLightf(numToID(lightNumber),GL.GL_CONSTANT_ATTENUATION,constantAttenuation); + this.attachedGL.glLightf(numToID(lightNumber),GL2.GL_CONSTANT_ATTENUATION,constantAttenuation); this.constantAttenuation = constantAttenuation; } @@ -689,7 +689,7 @@ public class Light { */ public void setLinearAttenuation(float linearAttenuation) { if (this.attachedGL != null) - this.attachedGL.glLightf(numToID(lightNumber),GL.GL_LINEAR_ATTENUATION,linearAttenuation); + this.attachedGL.glLightf(numToID(lightNumber),GL2.GL_LINEAR_ATTENUATION,linearAttenuation); this.linearAttenuation = linearAttenuation; } @@ -708,7 +708,7 @@ public class Light { */ public void setQuadraticAttenuation(float quadraticAttenuation) { if (this.attachedGL != null) - this.attachedGL.glLightf(numToID(lightNumber),GL.GL_QUADRATIC_ATTENUATION,quadraticAttenuation); + this.attachedGL.glLightf(numToID(lightNumber),GL2.GL_QUADRATIC_ATTENUATION,quadraticAttenuation); this.quadraticAttenuation = quadraticAttenuation; } @@ -728,7 +728,7 @@ public class Light { * @param gl the OpenGL context to test * @return the maximum number of lights (highest possible in OpenGL is 8) */ - public static int maxNumberOfLightsInGL(GL gl) { + public static int maxNumberOfLightsInGL(GL2 gl) { java.nio.IntBuffer buff = java.nio.IntBuffer.allocate(1); gl.glGetIntegerv(gl.GL_MAX_LIGHTS,buff); return buff.get(); @@ -743,28 +743,28 @@ public class Light { public static int idToNum(int lightID) throws LightingException { int retNum = -1; switch (lightID) { - case GL.GL_LIGHT0: + case GL2.GL_LIGHT0: retNum = 0; break; - case GL.GL_LIGHT1: + case GL2.GL_LIGHT1: retNum = 1; break; - case GL.GL_LIGHT2: + case GL2.GL_LIGHT2: retNum = 2; break; - case GL.GL_LIGHT3: + case GL2.GL_LIGHT3: retNum = 3; break; - case GL.GL_LIGHT4: + case GL2.GL_LIGHT4: retNum = 4; break; - case GL.GL_LIGHT5: + case GL2.GL_LIGHT5: retNum = 5; break; - case GL.GL_LIGHT6: + case GL2.GL_LIGHT6: retNum = 6; break; - case GL.GL_LIGHT7: + case GL2.GL_LIGHT7: retNum = 7; break; default: @@ -784,28 +784,28 @@ public class Light { int retID = -1; switch (lightNum) { case 0: - retID = GL.GL_LIGHT0; + retID = GL2.GL_LIGHT0; break; case 1: - retID = GL.GL_LIGHT1; + retID = GL2.GL_LIGHT1; break; case 2: - retID = GL.GL_LIGHT2; + retID = GL2.GL_LIGHT2; break; case 3: - retID = GL.GL_LIGHT3; + retID = GL2.GL_LIGHT3; break; case 4: - retID = GL.GL_LIGHT4; + retID = GL2.GL_LIGHT4; break; case 5: - retID = GL.GL_LIGHT5; + retID = GL2.GL_LIGHT5; break; case 6: - retID = GL.GL_LIGHT6; + retID = GL2.GL_LIGHT6; break; case 7: - retID = GL.GL_LIGHT7; + retID = GL2.GL_LIGHT7; break; default: throw new LightingException("tried to determine ID of a number not on [0,7]"); @@ -818,7 +818,7 @@ public class Light { * @param gl the openGL context to test * @return true if another Light object can be attached to this GL context */ - public static boolean hasFreeLights(GL gl) { + public static boolean hasFreeLights(GL2 gl) { boolean[] lights = assignedLights.get(gl); if (lights == null) return true; @@ -881,7 +881,7 @@ public class Light { * @throws net.java.joglutils.lighting.LightingException if the OpenGL context does not support GLSL shaders or the shader did not sucessfully compile and link */ public static void initializePhongShader() throws LightingException { - initializePhongShader(javax.media.opengl.glu.GLU.getCurrentGL()); + initializePhongShader(javax.media.opengl.glu.GLU.getCurrentGL().getGL2()); } /** @@ -889,7 +889,7 @@ public class Light { * @param gl the openGL context on which to initialize the shader * @throws net.java.joglutils.lighting.LightingException if the OpenGL context does not support GLSL shaders or the shader did not sucessfully compile and link */ - public static void initializePhongShader(GL gl) throws LightingException { + public static void initializePhongShader(GL2 gl) throws LightingException { /* Old way that only works for light zero //program source final String[] fragSource = { @@ -943,8 +943,8 @@ public class Light { if(builtin) { progID = gl.glCreateProgram(); - int vertID = gl.glCreateShader(GL.GL_VERTEX_SHADER); - int fragID = gl.glCreateShader(GL.GL_FRAGMENT_SHADER); + int vertID = gl.glCreateShader(GL2.GL_VERTEX_SHADER); + int fragID = gl.glCreateShader(GL2.GL_FRAGMENT_SHADER); gl.glShaderSource(vertID,vertSource.length,vertSource,vertLengths,0); gl.glShaderSource(fragID,fragSource.length,fragSource,fragLengths,0); @@ -958,9 +958,9 @@ public class Light { gl.glLinkProgram(progID); int[] getProgArray = new int[1]; - gl.glGetProgramiv(progID,GL.GL_LINK_STATUS,getProgArray,0); - if (getProgArray[0] == GL.GL_FALSE) { - gl.glGetProgramiv(progID,GL.GL_INFO_LOG_LENGTH,getProgArray,0); + gl.glGetProgramiv(progID,GL2.GL_LINK_STATUS,getProgArray,0); + if (getProgArray[0] == GL2.GL_FALSE) { + gl.glGetProgramiv(progID,GL2.GL_INFO_LOG_LENGTH,getProgArray,0); int logLength = getProgArray[0]; byte[] logArray = new byte[logLength]; gl.glGetProgramInfoLog(progID,logLength,getProgArray,0,logArray,0); @@ -970,8 +970,8 @@ public class Light { } else { progID = gl.glCreateProgramObjectARB(); - int vertID = gl.glCreateShaderObjectARB(GL.GL_VERTEX_SHADER_ARB); - int fragID = gl.glCreateShaderObjectARB(GL.GL_FRAGMENT_SHADER_ARB); + int vertID = gl.glCreateShaderObjectARB(GL2.GL_VERTEX_SHADER_ARB); + int fragID = gl.glCreateShaderObjectARB(GL2.GL_FRAGMENT_SHADER_ARB); gl.glShaderSourceARB(vertID,vertSource.length,vertSource,vertLengths,0); gl.glShaderSourceARB(fragID,fragSource.length,fragSource,fragLengths,0); @@ -985,9 +985,9 @@ public class Light { gl.glLinkProgramARB(progID); int[] getProgArray = new int[1]; - gl.glGetObjectParameterivARB(progID,GL.GL_OBJECT_LINK_STATUS_ARB,getProgArray,0); - if (getProgArray[0] == GL.GL_FALSE) { - gl.glGetObjectParameterivARB(progID,GL.GL_OBJECT_INFO_LOG_LENGTH_ARB,getProgArray,0); + gl.glGetObjectParameterivARB(progID,GL2.GL_OBJECT_LINK_STATUS_ARB,getProgArray,0); + if (getProgArray[0] == GL2.GL_FALSE) { + gl.glGetObjectParameterivARB(progID,GL2.GL_OBJECT_INFO_LOG_LENGTH_ARB,getProgArray,0); int logLength = getProgArray[0]; byte[] logArray = new byte[logLength]; gl.glGetInfoLogARB(progID,logLength,getProgArray,0,logArray,0); @@ -1016,7 +1016,7 @@ public class Light { throw new LightingException("Couldn't generate shader programs in numerical order - can't use Phong Shading"); } - int vertID = gl.glCreateShader(GL.GL_VERTEX_SHADER); + int vertID = gl.glCreateShader(GL2.GL_VERTEX_SHADER); String[] vertSource = generatePhongVertexShaderSource(); gl.glShaderSource(vertID,vertSource.length,vertSource,generateShaderLengths(vertSource),0); @@ -1024,7 +1024,7 @@ public class Light { //generate program for each light and compile and link for (int currID = progID;currID < (8+progID);++currID) { - int fragID = gl.glCreateShader(GL.GL_FRAGMENT_SHADER); + int fragID = gl.glCreateShader(GL2.GL_FRAGMENT_SHADER); String[] fragSource = generatePhongFragmentShaderSource(currID-progID); gl.glShaderSource(fragID,fragSource.length,fragSource,generateShaderLengths(fragSource),0); @@ -1037,9 +1037,9 @@ public class Light { gl.glLinkProgram(currID); int[] getProgArray = new int[1]; - gl.glGetProgramiv(currID,GL.GL_LINK_STATUS,getProgArray,0); - if (getProgArray[0] == GL.GL_FALSE) { - gl.glGetProgramiv(currID,GL.GL_INFO_LOG_LENGTH,getProgArray,0); + gl.glGetProgramiv(currID,GL2.GL_LINK_STATUS,getProgArray,0); + if (getProgArray[0] == GL2.GL_FALSE) { + gl.glGetProgramiv(currID,GL2.GL_INFO_LOG_LENGTH,getProgArray,0); int logLength = getProgArray[0]; byte[] logArray = new byte[logLength]; gl.glGetProgramInfoLog(currID,logLength,getProgArray,0,logArray,0); @@ -1056,7 +1056,7 @@ public class Light { throw new LightingException("Couldn't generate shader programs in numerical order - can't use Phong Shading"); } - int vertID = gl.glCreateShaderObjectARB(GL.GL_VERTEX_SHADER_ARB); + int vertID = gl.glCreateShaderObjectARB(GL2.GL_VERTEX_SHADER); String[] vertSource = generatePhongVertexShaderSource(); gl.glShaderSourceARB(vertID,vertSource.length,vertSource,generateShaderLengths(vertSource),0); @@ -1064,7 +1064,7 @@ public class Light { //generate program for each light and compile and link for (int currID = progID;currID < (8+progID);++currID) { - int fragID = gl.glCreateShaderObjectARB(GL.GL_FRAGMENT_SHADER_ARB); + int fragID = gl.glCreateShaderObjectARB(GL2.GL_FRAGMENT_SHADER); String[] fragSource = generatePhongFragmentShaderSource(currID-progID); gl.glShaderSourceARB(fragID,fragSource.length,fragSource,generateShaderLengths(fragSource),0); @@ -1077,9 +1077,9 @@ public class Light { gl.glLinkProgramARB(currID); int[] getProgArray = new int[1]; - gl.glGetObjectParameterivARB(currID,GL.GL_OBJECT_LINK_STATUS_ARB,getProgArray,0); - if (getProgArray[0] == GL.GL_FALSE) { - gl.glGetObjectParameterivARB(currID,GL.GL_OBJECT_INFO_LOG_LENGTH_ARB,getProgArray,0); + gl.glGetObjectParameterivARB(currID,GL2.GL_OBJECT_LINK_STATUS_ARB,getProgArray,0); + if (getProgArray[0] == GL2.GL_FALSE) { + gl.glGetObjectParameterivARB(currID,GL2.GL_OBJECT_INFO_LOG_LENGTH_ARB,getProgArray,0); int logLength = getProgArray[0]; byte[] logArray = new byte[logLength]; gl.glGetInfoLogARB(currID,logLength,getProgArray,0,logArray,0); @@ -1100,7 +1100,7 @@ public class Light { **/ public static void removePhongShader() throws LightingException { - removePhongShader(javax.media.opengl.glu.GLU.getCurrentGL()); + removePhongShader(javax.media.opengl.glu.GLU.getCurrentGL().getGL2()); } /** @@ -1109,7 +1109,7 @@ public class Light { * @param gl the OpenGL context to remove the Phong shader program from * @throws net.java.joglutils.lighting.LightingException if there is no Phong Shader initialized on this context */ - public static void removePhongShader(GL gl) throws LightingException { + public static void removePhongShader(GL2 gl) throws LightingException { if (shaderBuiltin.containsKey(gl)) { int progID = shaderProgNums.remove(gl); if(shaderBuiltin.remove(gl)) { @@ -1144,10 +1144,10 @@ public class Light { } //----------- Private internal functions/methods below this point------------ - private static boolean isLightNumberValid(GL gl ,int lightNumber) { + private static boolean isLightNumberValid(GL2 gl ,int lightNumber) { return (lightNumber > -1 && lightNumber < maxNumberOfLightsInGL(gl)); } - private static boolean isLightNumberFree(GL gl, int lightNumber) { + private static boolean isLightNumberFree(GL2 gl, int lightNumber) { boolean[] lights = assignedLights.get(gl); if (lights == null) return true; @@ -1157,7 +1157,7 @@ public class Light { } - private static int findAndAssignFreeLightNumber(GL gl) { + private static int findAndAssignFreeLightNumber(GL2 gl) { boolean[] lights = assignedLights.get(gl); if (lights == null) { lights = new boolean[maxNumberOfLightsInGL(gl)]; @@ -1179,7 +1179,7 @@ public class Light { return -1; } - private static void assignLightNumber(GL gl, int lightNumber) { + private static void assignLightNumber(GL2 gl, int lightNumber) { //No range checking boolean[] lights = assignedLights.get(gl); if (lights == null) { @@ -1191,7 +1191,7 @@ public class Light { assignedLights.put(gl,lights); } - private static void unassignLightNumber(GL gl, int lightNumber) { + private static void unassignLightNumber(GL2 gl, int lightNumber) { //No range checking boolean[] lights = assignedLights.get(gl); lights[lightNumber] = false; diff --git a/src/net/java/joglutils/lighting/Material.java b/src/net/java/joglutils/lighting/Material.java index a709423..f8500b4 100644 --- a/src/net/java/joglutils/lighting/Material.java +++ b/src/net/java/joglutils/lighting/Material.java @@ -52,7 +52,7 @@ import java.nio.*; * @author Erik J. Tollerud */ public class Material { - GL attachedGL; + GL2 attachedGL; private int face; private float[] ambient; @@ -65,7 +65,7 @@ public class Material { /** Creates a new instance of Material from the OpenGL default material settings */ public Material() { attachedGL = null; - face = GL.GL_FRONT_AND_BACK; + face = GL2.GL_FRONT_AND_BACK; float[] localAmb = {0.2f,0.2f,0.2f,1.0f}; ambient = localAmb; float[] localDiff = {0.8f,0.8f,0.8f,1.0f}; @@ -82,7 +82,7 @@ public class Material { * @param gl the OpenGL context to attach * @param face the face to use for configuring the material */ - public Material(GL gl, int face) { + public Material(GL2 gl, int face) { this.attachedGL = gl; this.face = face; this.specular = new float[4]; @@ -95,14 +95,14 @@ public class Material { * Creates a new instance of material, with the specified GL context attached. Settings are applied to front and back. * @param gl the OpenGL context to attach */ - public Material(GL gl) { - this(gl,GL.GL_FRONT_AND_BACK); + public Material(GL2 gl) { + this(gl,GL2.GL_FRONT_AND_BACK); } /** * Attached the specified OpenGL context to this object * @param gl the OpenGL context to attach this to */ - public void setAttachedGL(GL gl) { + public void setAttachedGL(GL2 gl) { this.attachedGL = gl; } /** @@ -132,21 +132,21 @@ public class Material { * Sets the OpenGL State in the supplied context based on the settings in this Material. * @param gl the OpenGL Context upon which to apply the settings from this Material. */ - public void apply(GL gl) { - gl.glMaterialfv(face,GL.GL_SPECULAR,specular,0); - gl.glMaterialfv(face,GL.GL_EMISSION,emissive,0); - gl.glMaterialfv(face,GL.GL_AMBIENT,ambient,0); - gl.glMaterialfv(face,GL.GL_DIFFUSE,diffuse,0); - gl.glMaterialf(face,GL.GL_SHININESS,shininess); + public void apply(GL2 gl) { + gl.glMaterialfv(face,GL2.GL_SPECULAR,specular,0); + gl.glMaterialfv(face,GL2.GL_EMISSION,emissive,0); + gl.glMaterialfv(face,GL2.GL_AMBIENT,ambient,0); + gl.glMaterialfv(face,GL2.GL_DIFFUSE,diffuse,0); + gl.glMaterialf(face,GL2.GL_SHININESS,shininess); } /** * Sets the settings in this Material from the specified OpenGL context's state. * @param gl the OpenGL Context to use in setting this Material's settings. */ - public void retrieve(GL gl) { + public void retrieve(GL2 gl) { int retrievalFace = face; - if (face == GL.GL_FRONT_AND_BACK) - retrievalFace = GL.GL_FRONT; + if (face == GL2.GL_FRONT_AND_BACK) + retrievalFace = GL2.GL_FRONT; FloatBuffer buff = FloatBuffer.allocate(17); @@ -182,23 +182,23 @@ public class Material { /** * Specifies the face for subsequent apply method calls to apply and retrieve the material settings. If * GL_FRONT_AND_BACK, will retrieve from GL_FRONT. - * @param face the face to apply material settings upon. Must be GL.GL_FRONT_AND_BACK, GL.GL_FRONT, or GL.GL_BACK + * @param face the face to apply material settings upon. Must be GL2.GL_FRONT_AND_BACK, GL2.GL_FRONT, or GL2.GL_BACK * @throws sddm.lighting.LightingException if an invalid input is provided */ public void setFace(int face) throws LightingException { - if(face==GL.GL_FRONT_AND_BACK) - this.face = GL.GL_FRONT_AND_BACK; - else if(face == GL.GL_FRONT) - this.face = GL.GL_FRONT; - else if(face == GL.GL_BACK) - this.face = GL.GL_BACK; + if(face==GL2.GL_FRONT_AND_BACK) + this.face = GL2.GL_FRONT_AND_BACK; + else if(face == GL2.GL_FRONT) + this.face = GL2.GL_FRONT; + else if(face == GL2.GL_BACK) + this.face = GL2.GL_BACK; else throw new LightingException("Attempted to set face to an invalid value"); } /** * Determines what face the material settings are applied to or retrieved from. - * @return the face used - can be GL.GL_FRONT_AND_BACK, GL.GL_FRONT, or GL.GL_BACK + * @return the face used - can be GL2.GL_FRONT_AND_BACK, GL2.GL_FRONT, or GL2.GL_BACK */ public int getFace() { return face; @@ -210,7 +210,7 @@ public class Material { */ public void setSpecular(Color specular) { if (this.attachedGL != null) - attachedGL.glMaterialfv(face,GL.GL_SPECULAR,specular.getRGBComponents(null),0); + attachedGL.glMaterialfv(face,GL2.GL_SPECULAR,specular.getRGBComponents(null),0); this.specular = specular.getRGBComponents(null); } @@ -228,7 +228,7 @@ public class Material { */ public void setShininess(float shininess) { if (this.attachedGL != null) - attachedGL.glMaterialf(face,GL.GL_SHININESS,shininess); + attachedGL.glMaterialf(face,GL2.GL_SHININESS,shininess); this.shininess = shininess; } @@ -246,7 +246,7 @@ public class Material { */ public void setEmissive(Color emissive) { if (this.attachedGL != null) - attachedGL.glMaterialfv(face,GL.GL_EMISSION,emissive.getRGBComponents(null),0); + attachedGL.glMaterialfv(face,GL2.GL_EMISSION,emissive.getRGBComponents(null),0); this.emissive = emissive.getRGBComponents(null); } @@ -264,7 +264,7 @@ public class Material { */ public void setAmbient(Color ambient) { if (this.attachedGL != null) - attachedGL.glMaterialfv(face,GL.GL_AMBIENT,ambient.getRGBComponents(null),0); + attachedGL.glMaterialfv(face,GL2.GL_AMBIENT,ambient.getRGBComponents(null),0); this.ambient = ambient.getRGBComponents(null); } @@ -282,7 +282,7 @@ public class Material { */ public void setDiffuse(Color diffuse) { if (this.attachedGL != null) - attachedGL.glMaterialfv(face,GL.GL_DIFFUSE,diffuse.getRGBComponents(null),0); + attachedGL.glMaterialfv(face,GL2.GL_DIFFUSE,diffuse.getRGBComponents(null),0); this.diffuse = diffuse.getRGBComponents(null); } @@ -319,7 +319,7 @@ public class Material { * @param gl the OpenGL context to apply this color to. * @param ambient the ambient color to be applied. */ - public static void applyGlobalAmbient(GL gl, Color ambient) { + public static void applyGlobalAmbient(GL2 gl, Color ambient) { gl.glLightModelfv(gl.GL_LIGHT_MODEL_AMBIENT,ambient.getRGBComponents(null),0); } /** @@ -327,7 +327,7 @@ public class Material { * @param gl the OpenGL Context from which to get the color. * @return the ambient color in the specified OpenGL Context. */ - public static Color getGlobalAmbient(GL gl) { + public static Color getGlobalAmbient(GL2 gl) { FloatBuffer buff = FloatBuffer.allocate(4); gl.glGetFloatv(gl.GL_LIGHT_MODEL_AMBIENT, buff); return new Color(buff.get(),buff.get(),buff.get(),buff.get()); diff --git a/src/net/java/joglutils/model/examples/DisplayListRenderer.java b/src/net/java/joglutils/model/examples/DisplayListRenderer.java index 50f7d99..4989356 100644 --- a/src/net/java/joglutils/model/examples/DisplayListRenderer.java +++ b/src/net/java/joglutils/model/examples/DisplayListRenderer.java @@ -10,16 +10,14 @@ package net.java.joglutils.model.examples; import net.java.joglutils.model.*; -import com.sun.opengl.util.texture.Texture; -import com.sun.opengl.util.texture.TextureCoords; -import com.sun.opengl.util.texture.TextureIO; +import com.sun.opengl.util.texture.*; +import com.sun.opengl.util.texture.awt.*; import java.awt.image.BufferedImage; import java.io.IOException; import java.net.URL; import java.util.HashMap; import javax.imageio.ImageIO; -import javax.media.opengl.GL; -import javax.media.opengl.GLAutoDrawable; +import javax.media.opengl.*; import net.java.joglutils.model.ResourceRetriever; import net.java.joglutils.model.geometry.Bounds; import net.java.joglutils.model.geometry.Material; @@ -56,13 +54,13 @@ public class DisplayListRenderer implements iModel3DRenderer { public void render(Object context, Model model) { - GL gl = null; + GL2 gl = null; - if (context instanceof GL) - gl = (GL) context; + if (context instanceof GL2) + gl = (GL2) context; else if (context instanceof GLAutoDrawable) - gl = ((GLAutoDrawable) context).getGL(); + gl = ((GLAutoDrawable) context).getGL().getGL2(); if (gl == null) { return; @@ -81,22 +79,22 @@ public class DisplayListRenderer implements iModel3DRenderer { } // save some current state variables - boolean isTextureEnabled = gl.glIsEnabled(GL.GL_TEXTURE_2D); - boolean isLightingEnabled = gl.glIsEnabled(GL.GL_LIGHTING); - boolean isMaterialEnabled = gl.glIsEnabled(GL.GL_COLOR_MATERIAL); + boolean isTextureEnabled = gl.glIsEnabled(GL2.GL_TEXTURE_2D); + boolean isLightingEnabled = gl.glIsEnabled(GL2.GL_LIGHTING); + boolean isMaterialEnabled = gl.glIsEnabled(GL2.GL_COLOR_MATERIAL); // check lighting - if (!model.isUsingLighting()) { gl.glDisable(GL.GL_LIGHTING); } + if (!model.isUsingLighting()) { gl.glDisable(GL2.GL_LIGHTING); } // check texture - if (model.isUsingTexture()) { gl.glEnable(GL.GL_TEXTURE_2D); } - else { gl.glDisable(GL.GL_TEXTURE_2D); } + if (model.isUsingTexture()) { gl.glEnable(GL2.GL_TEXTURE_2D); } + else { gl.glDisable(GL2.GL_TEXTURE_2D); } // check wireframe - if (model.isRenderingAsWireframe()) { gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_LINE); } - else { gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL); } + if (model.isRenderingAsWireframe()) { gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_LINE); } + else { gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL); } - gl.glDisable(GL.GL_COLOR_MATERIAL); + gl.glDisable(GL2.GL_COLOR_MATERIAL); gl.glPushMatrix(); @@ -115,7 +113,7 @@ public class DisplayListRenderer implements iModel3DRenderer { gl.glCallList(displayList); // Disabled lighting for drawing the boundary lines so they are all white (or whatever I chose) - gl.glDisable(GL.GL_LIGHTING); + gl.glDisable(GL2.GL_LIGHTING); if (model.isRenderModelBounds()) gl.glCallList(modelBoundsList); if (model.isRenderObjectBounds()) @@ -125,21 +123,21 @@ public class DisplayListRenderer implements iModel3DRenderer { // Reset the flags back for lighting and texture if (isTextureEnabled) { - gl.glEnable(GL.GL_TEXTURE_2D); + gl.glEnable(GL2.GL_TEXTURE_2D); } else { - gl.glDisable(GL.GL_TEXTURE_2D); + gl.glDisable(GL2.GL_TEXTURE_2D); } if (isLightingEnabled) { - gl.glEnable(GL.GL_LIGHTING); + gl.glEnable(GL2.GL_LIGHTING); } else { - gl.glDisable(GL.GL_LIGHTING); + gl.glDisable(GL2.GL_LIGHTING); } if (isMaterialEnabled) { - gl.glEnable(GL.GL_COLOR_MATERIAL); + gl.glEnable(GL2.GL_COLOR_MATERIAL); } else { - gl.glDisable(GL.GL_COLOR_MATERIAL); + gl.glDisable(GL2.GL_COLOR_MATERIAL); } } @@ -150,7 +148,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * @param file * @return */ - private int initialize(GL gl, Model model) + private int initialize(GL2 gl, Model model) { if (this.isDebugging) System.out.println("Initialize Model: " + model.getSource()); @@ -217,7 +215,7 @@ public class DisplayListRenderer implements iModel3DRenderer { if (this.isDebugging) System.out.println(" Model List"); - gl.glNewList(compiledList, GL.GL_COMPILE); + gl.glNewList(compiledList, GL2.GL_COMPILE); genList(gl, model); gl.glEndList(); @@ -225,7 +223,7 @@ public class DisplayListRenderer implements iModel3DRenderer { if (this.isDebugging) System.out.println(" Boundary List"); - gl.glNewList(modelBoundsList, GL.GL_COMPILE); + gl.glNewList(modelBoundsList, GL2.GL_COMPILE); genModelBoundsList(gl, model); gl.glEndList(); @@ -233,7 +231,7 @@ public class DisplayListRenderer implements iModel3DRenderer { if (this.isDebugging) System.out.println(" Object Boundary List"); - gl.glNewList(objectBoundsList, GL.GL_COMPILE); + gl.glNewList(objectBoundsList, GL2.GL_COMPILE); genObjectBoundsList(gl, model); gl.glEndList(); @@ -264,7 +262,7 @@ public class DisplayListRenderer implements iModel3DRenderer { return; } - texture.put(id, TextureIO.newTexture(bufferedImage, true)); + texture.put(id, AWTTextureIO.newTexture(bufferedImage, true)); } } @@ -273,7 +271,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * * @param gl */ - private void genList(GL gl, Model model) { + private void genList(GL2 gl, Model model) { TextureCoords coords; for (int i=0; i=0 && id <= model.getNumberOfMeshes()) { if (model.getMesh(id).bounds != null) { drawBounds(gl, model.getMesh(id).bounds); @@ -422,7 +420,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * @param gLDrawable */ private void genModelBoundsList(GLAutoDrawable gLDrawable, Model model) { - GL gl = gLDrawable.getGL(); + GL2 gl = gLDrawable.getGL().getGL2(); drawBounds(gl, model.getBounds()); } @@ -432,7 +430,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * * @param gl */ - private void genModelBoundsList(GL gl, Model model) { + private void genModelBoundsList(GL2 gl, Model model) { drawBounds(gl, model.getBounds()); } @@ -442,7 +440,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * @param gLDrawable */ private void genObjectBoundsList(GLAutoDrawable gLDrawable, Model model) { - GL gl = gLDrawable.getGL(); + GL2 gl = gLDrawable.getGL().getGL2(); genObjectBoundsList(gl, model); } @@ -451,7 +449,7 @@ public class DisplayListRenderer implements iModel3DRenderer { * * @param gl */ - private void genObjectBoundsList(GL gl, Model model) { + private void genObjectBoundsList(GL2 gl, Model model) { for (int i=0; i(); @@ -221,8 +222,8 @@ public class DisplayShelfRenderer implements GLEventListener { return targetIndex; } - public void init(GLAutoDrawable drawable) { - this.drawable = drawable; + public void init(GLAutoDrawable d) { + this.drawable = (AWTGLAutoDrawable) d; GL gl = drawable.getGL(); if (firstInit) { @@ -407,7 +408,7 @@ public class DisplayShelfRenderer implements GLEventListener { if (repaintAgain) { animating = true; - drawable.repaint(); + ((AWTGLAutoDrawable) drawable).repaint(); } else { animating = false; } @@ -416,7 +417,7 @@ public class DisplayShelfRenderer implements GLEventListener { public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { } - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {} + public void dispose(GLAutoDrawable drawable) {} //---------------------------------------------------------------------- // Internals only below this point diff --git a/src/net/java/joglutils/msg/test/Test.java b/src/net/java/joglutils/msg/test/Test.java index a782e3e..d54d31b 100644 --- a/src/net/java/joglutils/msg/test/Test.java +++ b/src/net/java/joglutils/msg/test/Test.java @@ -35,116 +35,117 @@ * */ -package net.java.joglutils.msg.test; - -import java.awt.Frame; -import java.awt.event.*; -import java.io.*; - -import javax.media.opengl.*; -import com.sun.opengl.util.texture.*; - -import net.java.joglutils.msg.actions.*; -import net.java.joglutils.msg.collections.*; -import net.java.joglutils.msg.math.*; -import net.java.joglutils.msg.nodes.*; - -/** A very basic test of the Minimal Scene Graph library. */ - -public class Test { - public static void main(String[] args) { - Frame frame = new Frame("Minimal Scene Graph (MSG) Test"); - GLCanvas canvas = new GLCanvas(); - canvas.addGLEventListener(new Listener()); - frame.add(canvas); - frame.setSize(512, 512); - frame.setVisible(true); - frame.addWindowListener(new WindowAdapter() { - public void windowClosing(WindowEvent e) { - new Thread(new Runnable() { - public void run() { - System.exit(0); - } - }).start(); - } - }); - } - - static class Listener implements GLEventListener { - private Separator root; - private GLRenderAction renderAction; - - public void init(GLAutoDrawable drawable) { - root = new Separator(); - PerspectiveCamera cam = new PerspectiveCamera(); - cam.setPosition(new Vec3f(0, 0, 2)); - root.addChild(cam); - Coordinate3 coordNode = new Coordinate3(); - Vec3fCollection coords = new Vec3fCollection(); - // First triangle - coords.add(new Vec3f( 1, 1, 0)); - coords.add(new Vec3f(-1, 1, 0)); - coords.add(new Vec3f(-1, -1, 0)); - // Second triangle - coords.add(new Vec3f( 1, 1, 0)); - coords.add(new Vec3f(-1, -1, 0)); - coords.add(new Vec3f( 1, -1, 0)); - coordNode.setData(coords); - root.addChild(coordNode); - - // Texture coordinates - TextureCoordinate2 texCoordNode = new TextureCoordinate2(); - Vec2fCollection texCoords = new Vec2fCollection(); - // First triangle - texCoords.add(new Vec2f( 1, 1)); - texCoords.add(new Vec2f( 0, 1)); - texCoords.add(new Vec2f( 0, 0)); - // Second triangle - texCoords.add(new Vec2f( 1, 1)); - texCoords.add(new Vec2f( 0, 0)); - texCoords.add(new Vec2f( 1, 0)); - texCoordNode.setData(texCoords); - root.addChild(texCoordNode); - - // Colors - Color4 colorNode = new Color4(); - Vec4fCollection colors = new Vec4fCollection(); - // First triangle - colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); - colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); - colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); - // Second triangle - colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); - colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); - colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); - colorNode.setData(colors); - root.addChild(colorNode); - - TriangleSet tris = new TriangleSet(); - tris.setNumTriangles(2); - root.addChild(tris); - - // Testing transforms - Transform xform = new Transform(); - xform.getTransform().setTranslation(new Vec3f(2, -2, 0)); - // xform.getTransform().setRotation(new Rotf(new Vec3f(0, 1, 0), (float) (-Math.PI / 4))); - root.addChild(xform); - - root.addChild(tris); - - GL gl = drawable.getGL(); - gl.glEnable(GL.GL_DEPTH_TEST); - - renderAction = new GLRenderAction(); - } - - public void display(GLAutoDrawable drawable) { - GL gl = drawable.getGL(); - gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); - renderAction.apply(root); - } - - public void reshape(GLAutoDrawable drawable, int x, int y, int w, int h) {} - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {} - } -} +package net.java.joglutils.msg.test; + +import java.awt.Frame; +import java.awt.event.*; +import java.io.*; + +import javax.media.opengl.*; +import javax.media.opengl.awt.*; +import com.sun.opengl.util.texture.*; + +import net.java.joglutils.msg.actions.*; +import net.java.joglutils.msg.collections.*; +import net.java.joglutils.msg.math.*; +import net.java.joglutils.msg.nodes.*; + +/** A very basic test of the Minimal Scene Graph library. */ + +public class Test { + public static void main(String[] args) { + Frame frame = new Frame("Minimal Scene Graph (MSG) Test"); + GLCanvas canvas = new GLCanvas(); + canvas.addGLEventListener(new Listener()); + frame.add(canvas); + frame.setSize(512, 512); + frame.setVisible(true); + frame.addWindowListener(new WindowAdapter() { + public void windowClosing(WindowEvent e) { + new Thread(new Runnable() { + public void run() { + System.exit(0); + } + }).start(); + } + }); + } + + static class Listener implements GLEventListener { + private Separator root; + private GLRenderAction renderAction; + + public void init(GLAutoDrawable drawable) { + root = new Separator(); + PerspectiveCamera cam = new PerspectiveCamera(); + cam.setPosition(new Vec3f(0, 0, 2)); + root.addChild(cam); + Coordinate3 coordNode = new Coordinate3(); + Vec3fCollection coords = new Vec3fCollection(); + // First triangle + coords.add(new Vec3f( 1, 1, 0)); + coords.add(new Vec3f(-1, 1, 0)); + coords.add(new Vec3f(-1, -1, 0)); + // Second triangle + coords.add(new Vec3f( 1, 1, 0)); + coords.add(new Vec3f(-1, -1, 0)); + coords.add(new Vec3f( 1, -1, 0)); + coordNode.setData(coords); + root.addChild(coordNode); + + // Texture coordinates + TextureCoordinate2 texCoordNode = new TextureCoordinate2(); + Vec2fCollection texCoords = new Vec2fCollection(); + // First triangle + texCoords.add(new Vec2f( 1, 1)); + texCoords.add(new Vec2f( 0, 1)); + texCoords.add(new Vec2f( 0, 0)); + // Second triangle + texCoords.add(new Vec2f( 1, 1)); + texCoords.add(new Vec2f( 0, 0)); + texCoords.add(new Vec2f( 1, 0)); + texCoordNode.setData(texCoords); + root.addChild(texCoordNode); + + // Colors + Color4 colorNode = new Color4(); + Vec4fCollection colors = new Vec4fCollection(); + // First triangle + colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); + colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); + colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); + // Second triangle + colors.add(new Vec4f(1.0f, 1.0f, 1.0f, 1.0f)); + colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); + colors.add(new Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); + colorNode.setData(colors); + root.addChild(colorNode); + + TriangleSet tris = new TriangleSet(); + tris.setNumTriangles(2); + root.addChild(tris); + + // Testing transforms + Transform xform = new Transform(); + xform.getTransform().setTranslation(new Vec3f(2, -2, 0)); + // xform.getTransform().setRotation(new Rotf(new Vec3f(0, 1, 0), (float) (-Math.PI / 4))); + root.addChild(xform); + + root.addChild(tris); + + GL gl = drawable.getGL(); + gl.glEnable(GL.GL_DEPTH_TEST); + + renderAction = new GLRenderAction(); + } + + public void display(GLAutoDrawable drawable) { + GL gl = drawable.getGL(); + gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); + renderAction.apply(root); + } + + public void reshape(GLAutoDrawable drawable, int x, int y, int w, int h) {} + public void dispose(GLAutoDrawable drawable) {} + } +} diff --git a/src/net/java/joglutils/test3ds/Main.java b/src/net/java/joglutils/test3ds/Main.java index d2b6c09..593c1a4 100644 --- a/src/net/java/joglutils/test3ds/Main.java +++ b/src/net/java/joglutils/test3ds/Main.java @@ -40,12 +40,8 @@ import com.sun.opengl.util.Animator; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; -import javax.media.opengl.GL; -import javax.media.opengl.GLAutoDrawable; -import javax.media.opengl.GLCanvas; -import javax.media.opengl.GLCapabilities; -import javax.media.opengl.GLDrawableFactory; -import javax.media.opengl.GLEventListener; +import javax.media.opengl.*; +import javax.media.opengl.awt.*; import javax.media.opengl.glu.GLU; public class Main { @@ -84,8 +80,8 @@ public class Main { public void display(GLAutoDrawable gLDrawable) { - final GL gl = gLDrawable.getGL(); - gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); + final GL2 gl = gLDrawable.getGL().getGL2(); + gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); gl.glLoadIdentity(); gl.glPushMatrix(); @@ -97,12 +93,7 @@ public class Main { } - /** Called when the display mode has been changed. !! CURRENTLY UNIMPLEMENTED IN JOGL !! - * @param gLDrawable The GLDrawable object. - * @param modeChanged Indicates if the video mode has changed. - * @param deviceChanged Indicates if the video device has changed. - */ - public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {} + public void dispose(GLAutoDrawable drawable) {} /** Called by the drawable immediately after the OpenGL context is * initialized for the first time. Can be used to perform one-time OpenGL @@ -111,13 +102,13 @@ public class Main { */ public void init(GLAutoDrawable gLDrawable) { - final GL gl = gLDrawable.getGL(); + final GL2 gl = gLDrawable.getGL().getGL2(); gl.glClearColor(0.0f, 0.0f, 0.0f, 0.3f); gl.glClearDepth(1.0f); - gl.glEnable(GL.GL_DEPTH_TEST); - gl.glDepthFunc(GL.GL_LEQUAL); - gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); + gl.glEnable(GL2.GL_DEPTH_TEST); + gl.glDepthFunc(GL2.GL_LEQUAL); + gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL2.GL_NICEST); if (!model.isLoaded()) model.load(gLDrawable, "globe.3ds"); @@ -139,17 +130,17 @@ public class Main { */ public void reshape(GLAutoDrawable gLDrawable, int x, int y, int width, int height) { - final GL gl = gLDrawable.getGL(); + final GL2 gl = gLDrawable.getGL().getGL2(); final GLU glu = new GLU(); if (height <= 0) // avoid a divide by zero error! height = 1; final float h = (float)width / (float)height; gl.glViewport(0, 0, width, height); - gl.glMatrixMode(GL.GL_PROJECTION); + gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); gl.glOrtho(-1000, 1000, -1000, 1000, -10000, 10000); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); } } diff --git a/src/net/java/joglutils/test3ds/MyModel.java b/src/net/java/joglutils/test3ds/MyModel.java index 1d8ec95..fbdca36 100644 --- a/src/net/java/joglutils/test3ds/MyModel.java +++ b/src/net/java/joglutils/test3ds/MyModel.java @@ -42,8 +42,7 @@ import com.sun.opengl.util.texture.TextureCoords; import com.sun.opengl.util.texture.TextureIO; import java.io.File; import java.io.IOException; -import javax.media.opengl.GL; -import javax.media.opengl.GLAutoDrawable; +import javax.media.opengl.*; public class MyModel extends Model3DS { @@ -67,7 +66,7 @@ public class MyModel extends Model3DS if (!super.load(file)) return false; - GL gl = gLDrawable.getGL(); + GL2 gl = gLDrawable.getGL().getGL2(); int numMaterials = materials.size(); texture = new Texture[numMaterials]; @@ -77,7 +76,7 @@ public class MyModel extends Model3DS } compiledList = gl.glGenLists(1); - gl.glNewList(compiledList, GL.GL_COMPILE); + gl.glNewList(compiledList, GL2.GL_COMPILE); genList(gLDrawable); gl.glEndList(); @@ -88,7 +87,7 @@ public class MyModel extends Model3DS public void render(GLAutoDrawable gLDrawable) { - GL gl = gLDrawable.getGL(); + GL2 gl = gLDrawable.getGL().getGL2(); gl.glCallList(compiledList); } @@ -106,7 +105,7 @@ public class MyModel extends Model3DS private void genList(GLAutoDrawable gLDrawable) { - GL gl = gLDrawable.getGL(); + GL2 gl = gLDrawable.getGL().getGL2(); TextureCoords coords; for (int i=0; i