From c1672c1eacd7a7f90c66d748840978a66aaf4163 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 3 Jun 2008 10:20:57 +0000 Subject: 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 --- src/classes/javax/media/opengl/glu/GLUquadric.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/classes/javax/media') 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); } -- cgit v1.2.3