Package com.jogamp.opengl

Examples of com.jogamp.opengl.FBObject.reset()


        // 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
      }
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.