This commit is contained in:
2024-12-04 22:35:04 +03:00
commit 3f1740f41f
43 changed files with 1757 additions and 0 deletions

22
Engine/Asset/Mesh/Mesh.cs Normal file
View File

@@ -0,0 +1,22 @@
using OpenTK.Mathematics;
namespace Engine.Asset.Mesh;
public class Mesh
{
public IReadOnlyList<Vertex> Vertices => _vertices;
public IReadOnlyList<uint> Indices => _indices;
internal IList<Vertex> VerticesInternal => _vertices;
internal IList<uint> IndicesInternal => _indices;
private readonly List<Vertex> _vertices = [];
private readonly List<uint> _indices = [];
public record struct Vertex
{
public Vector3 Position { get; internal set; }
public Vector3 Normal { get; internal set; }
public Vector2 Uv { get; internal set; }
}
}