diff options
author | Sven Gothel <[email protected]> | 2008-06-03 10:20:57 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-06-03 10:20:57 +0000 |
commit | c1672c1eacd7a7f90c66d748840978a66aaf4163 (patch) | |
tree | ddcfb0cb73ee1f484874fb0e1b16b827d2496501 /src/classes/javax/media | |
parent | 9583bd12ed22ece50ff6d1f40fc5a31ce1f96e6d (diff) |
Added Immediate Mode Sink (ImmModeSInk)
to allow ES 1.1 to use immediate mode rendering.
It uses VBO which can also be cached, see GLUquadric 'hack'.
GLUquadrics are now enabled for ES 1.
Added Sync to Newt's X11Window setVisible,
to make sure the window is established for the GLdrawable.
TODO: proper distinguishing of GL profiles and ImmModeSink
usage ..
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1661 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media')
-rwxr-xr-x | src/classes/javax/media/opengl/glu/GLUquadric.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/classes/javax/media/opengl/glu/GLUquadric.java b/src/classes/javax/media/opengl/glu/GLUquadric.java index bcb21fb90..882df6cb6 100755 --- a/src/classes/javax/media/opengl/glu/GLUquadric.java +++ b/src/classes/javax/media/opengl/glu/GLUquadric.java @@ -1,8 +1,19 @@ package javax.media.opengl.glu; +import javax.media.opengl.GL; +import com.sun.opengl.util.ImmModeSink; + /** * Wrapper for a GLU quadric object. */ public interface GLUquadric { + // creates a new ImmModeSink (VBO Buffers) and + // returns the old vbo buffer with it's rendering result + public ImmModeSink replaceVBOBuffer(); + + public void setVBOImmediateMode(boolean val); + + // gl may be null, then the GL client states are not disabled + public void resetVBOBuffer(GL gl); } |