summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-11-21 03:10:49 +0000
committerKenneth Russel <[email protected]>2008-11-21 03:10:49 +0000
commitd147467c591353e4cdad40e6b18a1bf70caedd2e (patch)
tree32e26a6894cec0a378c3e2961bdcc86c5e3bc8b0 /src
parent47cdcb9bc8c172c13fa430338f42e53959149b92 (diff)
Commented out reference to HDR demo to get JRefract to compile
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@293 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/jrefract/JRefract.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/demos/jrefract/JRefract.java b/src/demos/jrefract/JRefract.java
index 6a46230..cbf7a2a 100755
--- a/src/demos/jrefract/JRefract.java
+++ b/src/demos/jrefract/JRefract.java
@@ -35,7 +35,8 @@ package demos.jrefract;
import demos.common.Demo;
import demos.common.DemoListener;
-import demos.hdr.HDR;
+// FIXME: commenting out demos that don't compile right now
+//import demos.hdr.HDR;
import demos.hwShadowmapsSimple.HWShadowmapsSimple;
import demos.infiniteShadowVolumes.InfiniteShadowVolumes;
import demos.j2d.FlyingText;
@@ -97,7 +98,7 @@ public class JRefract {
}
private static final int GEARS = 1;
- private static final int HDR = 2;
+ // private static final int HDR = 2;
private static final int HWSHADOWS = 3;
private static final int INFINITE = 4;
private static final int REFRACT = 5;
@@ -121,7 +122,7 @@ public class JRefract {
String str = "";
switch (which) {
case GEARS: str = "Gears Demo"; break;
- case HDR: str = "High Dynamic Range Rendering Demo"; break;
+ // case HDR: str = "High Dynamic Range Rendering Demo"; break;
case HWSHADOWS: str = "ARB_shadow Shadows"; break;
case INFINITE: str = "Infinite Shadow Volumes"; break;
case REFRACT: str = "Refraction Using Vertex Programs"; break;
@@ -164,12 +165,14 @@ public class JRefract {
break;
}
+ /*
case HDR: {
demo = new HDR();
((HDR) demo).setup(null);
inner.setSize(((HDR) demo).getPreferredWidth(), ((HDR) demo).getPreferredHeight());
break;
}
+ */
case HWSHADOWS: {
demo = new HWShadowmapsSimple();
@@ -266,9 +269,9 @@ public class JRefract {
inner.getContentPane().add(canvas, BorderLayout.CENTER);
}
- if (which != HDR) {
- inner.setSize(512, 512);
- }
+ // if (which != HDR) {
+ inner.setSize(512, 512);
+ // }
desktop.add(inner);
return inner;
@@ -310,13 +313,13 @@ public class JRefract {
});
menu.add(item);
- item = new JMenuItem("High Dynamic Range");
- item.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- addWindow(HDR);
- }
- });
- menu.add(item);
+ // item = new JMenuItem("High Dynamic Range");
+ // item.addActionListener(new ActionListener() {
+ // public void actionPerformed(ActionEvent e) {
+ // addWindow(HDR);
+ // }
+ // });
+ // menu.add(item);
item = new JMenuItem("Hardware Shadow Maps");
item.addActionListener(new ActionListener() {