Examples of FBObject


Examples of com.jogamp.opengl.FBObject

//        ((GLFBODrawable)glDrawble).resetSize(gl);

        // Alternative: resize GL_BACK FBObject directly,
        // if multisampled the FBO sink (GL_FRONT) will be resized before the swap is executed
        int numSamples = ((GLFBODrawable)glDrawble).getChosenGLCapabilities().getNumSamples();
        FBObject fboObjectBack = ((GLFBODrawable)glDrawble).getFBObject( GL.GL_BACK );
        fboObjectBack.reset(gl, newWidth, newHeight, numSamples, false); // false = don't reset SamplingSinkFBO immediately
        fboObjectBack.bind(gl);

        // If double buffered without antialiasing the GL_FRONT FBObject
        // will be resized by glDrawble after the next swap-call
      }
      // pbuffer - not tested because Mac OS X 10.7+ supports FBO
View Full Code Here

Examples of com.jogamp.opengl.FBObject

static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height) {
  if (!(jdraw.getGLDrawable() instanceof GLFBODrawable))
    return false;

  FBObject fboBack = ((GLFBODrawable)jdraw.getGLDrawable()).getFBObject(GL.GL_BACK);
  if (fboBack == null)
    return false;

  return (width != fboBack.getWidth() || height != fboBack.getHeight());
}
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.