Examples of glPixelTransferf()


Examples of javax.media.opengl.GL2.glPixelTransferf()

                    throw new AssertionError("illegal format " + format);
            }

            /* Force Alpha to 1.0 if needed */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 0.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 1.0f);
            }

            gl.glReadPixels(0, 0, width, height, type, intType, IntBuffer.wrap((int[]) data));

View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            }

            /* Force Alpha to 1.0 if needed */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 0.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 1.0f);
            }

            gl.glReadPixels(0, 0, width, height, type, intType, IntBuffer.wrap((int[]) data));

      /* Restore Alpha scale and bias */
 
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            gl.glReadPixels(0, 0, width, height, type, intType, IntBuffer.wrap((int[]) data));

      /* Restore Alpha scale and bias */
      if(forceAlphaToOne) {
    gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 1.0f);
    gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 0.0f);
      }
        }
        else {
            throw new AssertionError("illegal image data type " + dataType);
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            gl.glReadPixels(0, 0, width, height, type, intType, IntBuffer.wrap((int[]) data));

      /* Restore Alpha scale and bias */
      if(forceAlphaToOne) {
    gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 1.0f);
    gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 0.0f);
      }
        }
        else {
            throw new AssertionError("illegal image data type " + dataType);
        }
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            }

            /* Force Alpha to 1.0 if needed */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 0.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 1.0f);
            }

            if(dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_ARRAY) {
                gl.glTexImage3D(GL2.GL_TEXTURE_3D,
                        level, internalFormat,
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

                        format, type, (Buffer) data);
            }

            /* Restore Alpha scale and bias */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 1.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 0.0f);
            }
        } else {
            assert false;
        }
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            }

            /* Restore Alpha scale and bias */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 1.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 0.0f);
            }
        } else {
            assert false;
        }
    }
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

                    return;
            }

            /* Force Alpha to 1.0 if needed */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 0.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 1.0f);
            }

            IntBuffer buf = null;
            if(dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_ARRAY) {
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

            }

            /* Force Alpha to 1.0 if needed */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 0.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 1.0f);
            }

            IntBuffer buf = null;
            if(dataType == ImageComponentRetained.IMAGE_DATA_TYPE_INT_ARRAY) {
                buf = IntBuffer.wrap((int[]) data);
View Full Code Here

Examples of javax.media.opengl.GL2.glPixelTransferf()

                    format, type,
                    buf);

            /* Restore Alpha scale and bias */
            if(forceAlphaToOne) {
                gl.glPixelTransferf(GL2.GL_ALPHA_SCALE, 1.0f);
                gl.glPixelTransferf(GL2.GL_ALPHA_BIAS, 0.0f);
            }
        } else {
            assert false;
            return;
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.