aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/glu/GLUquadric.java
blob: d5a7a11f30feb5f355b1b199c6a21b627654c9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 {
    // enable/disables the Immediate Mode Sink module.
    // This defaults to false for GLUgl2,
    // and is always true for GLUes1.
    public void enableImmModeSink(boolean val);

    public boolean isImmModeSinkEnabled();

    // set Immediate Mode usage.
    // This defaults to false at GLU creation time.
    // If enabled rendering will happen immediately,
    // otherwise rendering will be hold in the ImmModeSink
    // object, to be rendered deferred.
    public void setImmMode(boolean val);

    public boolean getImmMode();

    // creates a new ImmModeSink (VBO Buffers) and
    // returns the old vbo buffer with it's rendering result
    public ImmModeSink replaceImmModeSink();

    // gl may be null, then the GL client states are not disabled
    public void resetImmModeSink(GL gl);
}