Beispiel #1
0
        public void StartUsing(ref Matrix4 a_m4Projection, ref Matrix4 a_m4View, ref Matrix4 a_m4Model)
        {
            OpenTKUtilities.UseShaderProgram(m_iShaderProgramHandle);

            GL.UniformMatrix4(m_aiShaderMatrixLocations[0], false, ref a_m4Projection);
            GL.UniformMatrix4(m_aiShaderMatrixLocations[1], false, ref a_m4View);
            GL.UniformMatrix4(m_aiShaderMatrixLocations[2], false, ref a_m4Model);
        }
Beispiel #2
0
 public void StopUsing()
 {
     OpenTKUtilities.UseShaderProgram(0);
 }
Beispiel #3
0
 public void SetViewMatrix(ref Matrix4 a_m4View)
 {
     OpenTKUtilities.UseShaderProgram(m_iShaderProgramHandle);
     GL.UniformMatrix4(m_aiShaderMatrixLocations[1], false, ref a_m4View);
 }
Beispiel #4
0
 public void SetModelMatrix(ref Matrix4 a_m4Model)
 {
     OpenTKUtilities.UseShaderProgram(m_iShaderProgramHandle);
     GL.UniformMatrix4(m_aiShaderMatrixLocations[2], false, ref a_m4Model);
 }
Beispiel #5
0
 public void SetProjectionMatrix(ref Matrix4 a_m4Projection)
 {
     OpenTKUtilities.UseShaderProgram(m_iShaderProgramHandle);
     GL.UniformMatrix4(m_aiShaderMatrixLocations[0], false, ref a_m4Projection);
 }