Пример #1
0
 public static void DrawColoredMesh(Mesh mesh, Vector4 color, float x, float y, float width, float height)
 {
     DrawColoredMesh(mesh, Matrix4.Identity, color, x, y, width, height);
 }
Пример #2
0
 public static void Init()
 {
     Flat = new Mesh(new Vertex[] { new Vertex(0, 0, 0, 0, 1, 0, 1, 1, 1), new Vertex(1, 0, 0, 1, 1, 0, 1, 1, 1), new Vertex(1, 1, 0, 1, 0, 0, 1, 1, 1), new Vertex(0, 1, 0, 0, 0, 0, 1, 1, 1) }, new uint[] { 0, 1, 2, 0, 2, 3 }, false);
 }