package de.lessvoid.coregl;


import org.lwjgl.util.vector.Matrix4f;

public class MatrixFactory {
  public Matrix4f createProjection(final float width, final float height) {
    float left = 0;
    float right = width;
    float top = 0;
    float bottom = height;
    float zNear = -9999;
    float zFar = 9999;

    Matrix4f projection = new Matrix4f();
    projection.m00 = 2 / (right-left);
    projection.m30 = - (right+left) / (right-left);
    projection.m11 = 2 / (top-bottom);
    projection.m31 = - (top+bottom) / (top-bottom);
    projection.m22 = -2 / (zFar-zNear);
    projection.m32 = - (zFar+zNear) / (zFar-zNear);
    projection.m33 = 1;
    return projection;
  }
}

@@ -101,16 +101,23 @@
  public 
+static 
 Matrix4f
@@ -127,18 +127,13 @@
 eate
-Projection
+Ortho
 (fin
@@ -677,10 +677,629 @@
 on;%0A
-
   %7D%0A
+%0A  public static Matrix4f createProjection(final float width, final float height) %7B%0A    float left = 0;%0A    float right = width;%0A    float top = 0;%0A    float bottom = height;%0A    float zNear = 1;%0A    float zFar = 10000;%0A%0A    Matrix4f projection = new Matrix4f();%0A    projection.m00 = 2 * zNear / (right-left);%0A    projection.m20 = (right+left) / (right-left);%0A    projection.m11 = 2 * zNear / (top-bottom);%0A    projection.m21 = (top+bottom) / (top-bottom);%0A    projection.m22 = -(zFar + zNear) / (zFar-zNear);%0A    projection.m32 = - 2 * zFar * zNear / (zFar-zNear);%0A    projection.m23 = -1;%0A    return projection;%0A  %7D%0A%0A
 %7D%0A

add ortho projection to MatrixFactory and made methods static