コード例 #1
0
 public static void MatrixMode(OpenTK.Graphics.OpenGL.MatrixMode mode)
 {
     if (mode == OpenTK.Graphics.OpenGL.MatrixMode.Texture && usingTextureMatrix == false)
     {
         usingTextureMatrix   = true;
         _tempModelViewMatrix = ModelViewMatrix;
         ModelViewMatrix      = TextureMatrix;
     }
     else if (mode == OpenTK.Graphics.OpenGL.MatrixMode.Modelview && usingTextureMatrix == true)
     {
         usingTextureMatrix = false;
         TextureMatrix      = ModelViewMatrix;
         ModelViewMatrix    = _tempModelViewMatrix;
     }
     else if (mode == OpenTK.Graphics.OpenGL.MatrixMode.Projection)
     {
         Log.Error("Use SetProjectionMatrix() method instead of GLExt.MatrixMode(MatrixMode.Projection)");
     }
 }
コード例 #2
0
 public static void MatrixMode(OpenTK.Graphics.OpenGL.MatrixMode m)
 {
     GL.MatrixMode(m);
     GLR._MatrixMode = m;
 }