Example usage for org.lwjgl.opengl GL20 glUniformMatrix2fv

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

Introduction

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

Prototype

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

Source Link

Document

Array version of: #glUniformMatrix2fv UniformMatrix2fv

Usage

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

License:Apache License

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

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

License:Apache License

public void glUniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset) {
    GL20.glUniformMatrix2fv(location, transpose, toFloatBuffer(value, offset, count << 2));
}

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

License:Apache License

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