Package javax.media.opengl

Examples of javax.media.opengl.GL2


            ShaderAttrLoc uniformLocation,
            int numElements,
            int[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform1iArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform1ivARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here


            ShaderAttrLoc uniformLocation,
            int numElements,
            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform1fArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform1fvARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            int[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform2iArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform2ivARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform2fArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform2fvARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            int[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform3iArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform3ivARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform3fArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform3fvARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            int[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform4iArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform4ivARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            ShaderAttrLoc uniformLocation,
            int numElements,
            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniform4fArray()");

    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniform4fvARB(unbox(uniformLocation), numElements, value, 0);
        return null;
    }
View Full Code Here

            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniformMatrix3fArray()");

        // Load attribute
        // transpose is true : each matrix is supplied in row major order
    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniformMatrix3fvARB(unbox(uniformLocation), numElements, true, value, 0);
        return null;
    }
View Full Code Here

            float[] value) {
        if (VERBOSE) System.err.println("JoglPipeline.setGLSLUniformMatrix4fArray()");

        // Load attribute
        // transpose is true : each matrix is supplied in row major order
    GL2 gl = context(ctx).getGL().getGL2();
    gl.glUniformMatrix4fvARB(unbox(uniformLocation), numElements, true, value, 0);
        return null;
    }
View Full Code Here

TOP

Related Classes of javax.media.opengl.GL2

Copyright © 2018 www.massapicom. 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.