Example usage for org.lwjgl.opengl GL20 glUniformMatrix3fv

List of usage examples for org.lwjgl.opengl GL20 glUniformMatrix3fv

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL20 glUniformMatrix3fv.

Prototype

public static void glUniformMatrix3fv(@NativeType("GLint") int location,
        @NativeType("GLboolean") boolean transpose, @NativeType("GLfloat const *") float[] value) 

Source Link

Document

Array version of: #glUniformMatrix3fv UniformMatrix3fv

Usage

From source file:com.badlogic.gdx.backends.jglfw.JglfwGL20.java

License:Apache License

public void glUniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
    GL20.glUniformMatrix3fv(location, transpose, value);
}

From source file:com.badlogic.gdx.backends.lwjgl3.Lwjgl3GL20.java

License:Apache License

public void glUniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset) {
    GL20.glUniformMatrix3fv(location, transpose, toFloatBuffer(value, offset, count * 9));
}

From source file:com.grillecube.client.opengl.GLProgram.java

protected void loadUniformMatrix(int location, Matrix3f matrix) {
    matrix.store(this.matrixBuffer);
    this.matrixBuffer.flip();
    GL20.glUniformMatrix3fv(location, false, this.matrixBuffer);
}

From source file:com.opengrave.og.Util.java

License:Open Source License

public static void setUniformMat33(int pID, String string, FloatBuffer matrix33) {
    // System.out.println("Program "+pID);
    Util.checkErr();//from w  ww  . j a  va2 s.c o m
    int i = GL20.glGetUniformLocation(pID, string);
    Util.checkErr();
    if (i == -1) {
        // System.out.println("Cannot find uniform '"+string+"'");
        // Thread.dumpStack();
    } else {
        GL20.glUniformMatrix3fv(i, false, matrix33);
        Util.checkErr();
    }
}

From source file:net.smert.frameworkgl.opengl.helpers.ShaderUniformHelper.java

License:Apache License

public void setUniformMatrix3(int uniformID, boolean transpose, FloatBuffer matrix) {
    GL20.glUniformMatrix3fv(uniformID, transpose, matrix);
}