Package javax.media.opengl

Examples of javax.media.opengl.GL.glFlush()


    gl.glEnable(GL.GL_DEPTH_TEST);
   
    render(gl);

    gl.glFlush();
   
//    swapBuffers();
   
    /** If the form wants to, it can render it into a movie */
    frameFinished();
 
View Full Code Here


    gl.glEnable(GL.GL_LIGHTING);
   

    // Finish this frame
    gl.glFlush();
  }


  @Override
  public void displayChanged(GLAutoDrawable arg0, boolean arg1, boolean arg2) {
View Full Code Here

            gl.glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
        // Done Drawing The Quad
        gl.glEnd();

        // Flush all drawing operations to the graphics card
        gl.glFlush();
    }

    public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {
    }
}
View Full Code Here

        GL gl = context(ctx).getGL();

        if (wait)
            gl.glFinish();
        else
            gl.glFlush();
    }

    // The native method that sets this ctx to be the current one
    @Override
    boolean useCtx(Context ctx, Drawable drawable) {
View Full Code Here

    public void flushFrame(final boolean doSwap) {
        final GL gl = GLContext.getCurrentGL();

        renderBuckets();

        gl.glFlush();
        if (doSwap) {

            doApplyState(defaultStateList.get(RenderState.StateType.ColorMask));

            if (Constants.stats) {
View Full Code Here

    }

    public void flushGraphics() {
        final GL gl = GLContext.getCurrentGL();

        gl.glFlush();
    }

    public void finishGraphics() {
        final GL gl = GLContext.getCurrentGL();
View Full Code Here

    gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
    shapeManager.checkQueue(gl, glu);

    render(gl);
    gl.glFlush();
  }

  void renderClippingPlane(GL gl, double[] eqn, int plane) {
    java.nio.DoubleBuffer eqnBuffer = java.nio.DoubleBuffer.wrap(eqn);
    gl.glClipPlane(plane, eqnBuffer);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.