Skip to content

Commit

Permalink
Added a stub for the Mesh class.
Browse files Browse the repository at this point in the history
  • Loading branch information
LordNed committed Feb 15, 2015
1 parent 9dc3dd8 commit a8a3157
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions WEditor/Rendering/Mesh.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
namespace WEditor.Rendering
using System.Drawing;
using OpenTK;
using OpenTK.Graphics.OpenGL;

namespace WEditor.Rendering
{
public
class Mesh
public class Mesh
{
/// <summary> The bounding volume of the mesh. This is an axis-aligned bounding box in local space. Setting Verticies will automatically update the Bounds. (Read Only) </summary>
public Bounds Bounds { get; private set; }
/// <summary> Vertex colors of the mesh. </summary>
public Color[] Colors;
/// <summary> Vertex normals of the mesh. </summary>
public Vector3[] Normals;
/// <summary> Triangle indexes of the mesh. </summary>
public int[] Triangles;
/// <summary> Vertex positions of the mesh. </summary>
public Vector3[] Verticies;
/// <summary> Texture Coordinates of the mesh. </summary>
public Vector2[] UVs;
/// <summary> Vertex count of the mesh. (Read Only) </summary>
public int VertexCount { get; private set; }
/// <summary> MeshTopology lets you render complex things using lines or points instead of just triangles if desired. </summary>
//public PrimitiveType MeshTopology;

public Mesh()
{
Bounds = new Bounds(Vector3.Zero, Vector3.Zero);
Colors = null;
Normals = null;
Triangles = null;
Verticies = null;
UVs = null;
VertexCount = 0;
//MeshTopology = PrimitiveType.Triangles;
}
}
}

0 comments on commit a8a3157

Please sign in to comment.