Exemplo n.º 1
0
 public static void setProgramUniformMatrix4ARB(
     String name, boolean transpose, FloatBuffer matrix) {
   if (activeProgram == ProgramNone || matrix == null) {
     return;
   }
   int uniform = glGetUniformLocation(programs[activeProgram], name);
   glUniformMatrix4ARB(uniform, transpose, matrix);
 }
 private static void updateShaderUniform(ShaderVariableMatrix4 shaderUniform) {
   shaderUniform.matrixBuffer.rewind();
   ARBShaderObjects.glUniformMatrix4ARB(
       shaderUniform.variableID, shaderUniform.rowMajor, shaderUniform.matrixBuffer);
 }