-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (25 loc) · 1021 Bytes
/
Copy pathProgram.cs
File metadata and controls
29 lines (25 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using BroEngine.Graphics.Model;
using OpenTK.Mathematics;
class Program
{
private static void Main(string[] args)
{
Vertex[] vertices =
{
new Vertex(new Vector3(0.5f, 0.5f, 0.0f), new Vector4(1f, 0f, 0f, 1f), new Vector3(0.5f, 0.5f, 0.0f)),
new Vertex(new Vector3(0.5f, -0.5f, 0.0f), new Vector4(1f, 0f, 0f, 1f), new Vector3(0.5f, 0.5f, 0.0f)),
new Vertex(new Vector3(-0.5f, -0.5f, 0.0f), new Vector4(0f, 1f, 0f, 1f), new Vector3(0.5f, 0.5f, 0.0f)),
new Vertex(new Vector3(-0.5f, 0.5f, 0.0f), new Vector4(0f, 0f, 1f, 1f), new Vector3(0.5f, 0.5f, 0.0f))
};
uint[] indices = {
0, 1, 3, // first triangle
1, 2, 3 // second triangle
};
using (broEngine.Engine engine = new broEngine.Engine("BroEngine", 1980, 1080))
{
engine.vertices = vertices;
engine.indices = indices;
engine.Run();
}
}
}