Examples of swapBuffers()


Examples of javax.media.opengl.GLDrawable.swapBuffers()

  // The native method for swapBuffers - onscreen only
@Override
void swapBuffers(Canvas3D cv, Context ctx, Drawable drawable) {
  if (VERBOSE) System.err.println("JoglPipeline.swapBuffers()");
  GLDrawable draw = drawable(drawable);
  draw.swapBuffers();
}

    // native method for setting Material when no material is present
    @Override
    void updateMaterialColor(Context ctx, float r, float g, float b, float a) {
View Full Code Here

Examples of javax.media.opengl.GLFBODrawable.swapBuffers()

          fboDrawable = (GLFBODrawable)glDrawable;

          if (chosenCaps.getDoubleBuffered()) {
            // swap = resolve multisampling or flip back/front FBO
            fboDrawable.swapBuffers();
            // unbind texture render target, we read from FBO
            gl.glBindTexture(GL.GL_TEXTURE_2D, 0);
          }

          // bind FBO for reading pixel data
View Full Code Here

Examples of org.eclipse.swt.opengl.GLCanvas.swapBuffers()

            public void paintControl( PaintEvent paintevent ) {
                Rectangle rectangle = glcanvas.getClientArea();
                glcanvas.setCurrent();
                glcontext.makeCurrent();
                OneTriangle.render(glcontext.getGL().getGL2(), rectangle.width, rectangle.height);
                glcanvas.swapBuffers();
                glcontext.release();       
            }
        });

        shell.open();
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.