diff options
author | Travis Bryson <[email protected]> | 2005-12-21 01:20:15 +0000 |
---|---|---|
committer | Travis Bryson <[email protected]> | 2005-12-21 01:20:15 +0000 |
commit | 0528109e41cd314af6fa4f3e1e6c773042b18c26 (patch) | |
tree | abd182079420eb0da10127986dea61435903fcd8 /src/demos/cg | |
parent | 73ca0aa7d728b4dff41f50c048b86200adba86af (diff) |
Submitted by: Travis
Modified Files:
src/demos/cg/runtime_ogl/cgGL_vertex_example.java
src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
Replaced old DrawableFactory factory API with new public GLCanvas constructor. So
the CG demos will build now.
Added CG demos to nightly build so starting tonight the built bits will be added
to the nightlies posted on java.net
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@155 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/cg')
-rw-r--r-- | src/demos/cg/runtime_ogl/cgGL_vertex_example.java | 2 | ||||
-rw-r--r-- | src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java index e8ca280..1f165c8 100644 --- a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java +++ b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java @@ -269,7 +269,7 @@ public class cgGL_vertex_example implements GLEventListener public static void main(String[] argv) { Frame frame = new Frame("NVidia Cg Toolkit \"cgGL_vertex_example\" demo"); - GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.addGLEventListener(new cgGL_vertex_example()); frame.add(canvas); diff --git a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java index 51fe8d5..8e8d789 100644 --- a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java +++ b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java @@ -69,7 +69,7 @@ public class runtime_ogl_vertex_fragment implements GLEventListener public static void main(String[] argv) { Frame frame = new Frame("Cg demo (runtime_ogl_vertex_fragment)"); - GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); + GLCanvas canvas = new GLCanvas(); canvas.addGLEventListener(new runtime_ogl_vertex_fragment()); frame.add(canvas); |