diff options
author | Kenneth Russel <[email protected]> | 2008-11-21 03:10:49 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-11-21 03:10:49 +0000 |
commit | d147467c591353e4cdad40e6b18a1bf70caedd2e (patch) | |
tree | 32e26a6894cec0a378c3e2961bdcc86c5e3bc8b0 | |
parent | 47cdcb9bc8c172c13fa430338f42e53959149b92 (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
-rw-r--r-- | make/build.xml | 5 | ||||
-rwxr-xr-x | src/demos/jrefract/JRefract.java | 29 |
2 files changed, 18 insertions, 16 deletions
diff --git a/make/build.xml b/make/build.xml index 51efac2..9616063 100644 --- a/make/build.xml +++ b/make/build.xml @@ -115,9 +115,8 @@ <pathelement location="${joal-demos.jar}" /> <pathelement location="${simple-xml.jar}" /> </path> - <!-- For the time being we exclude the VertexArrayRange and HDR demos, which rely on NVIDIA-specific extensions, - as well as the JRefract demo, which pulls in all of the others --> - <javac destdir="${classes}" excludes="${jogl.cg.excludes},demos/nurbs/**,jbullet/**,demos/hdr/**,demos/vertexArrayRange/**,demos/jrefract/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines"> + <!-- For the time being we exclude the VertexArrayRange and HDR demos, which rely on NVIDIA-specific extensions --> + <javac destdir="${classes}" excludes="${jogl.cg.excludes},demos/nurbs/**,jbullet/**,demos/hdr/**,demos/vertexArrayRange/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines"> <src path="${src}" /> <classpath refid="jogl-demos.classpath" /> </javac> 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() { |