mach: Reorganised native backend files, moved structs and fixed circular

dependency
This commit is contained in:
iddev5 2022-05-15 12:33:50 +05:30 committed by Stephen Gutekanst
parent 2df0bc2786
commit 657091ed65
6 changed files with 106 additions and 117 deletions

View file

@ -32,10 +32,7 @@ pub const vertices = [_]Vertex{
.{ .pos = .{ WINDOW_WIDTH / 2 - TRIANGLE_SCALE, WINDOW_HEIGHT / 2 + 0, 0, 1 }, .uv = .{ 1, 0 } },
};
// TODO: Need to ask Ayush about this, ideally we have a square window in this example because it
// would mean our triangles are not being "stretched" out which would make debugging nicer.
// For some reason this doesn't compile atm.
// pub const options = mach.Engine.Options{ .width = 512, .height = 512 };
pub const options = mach.Options{ .width = 512, .height = 512 };
// The uniform read by the vertex shader, it contains the matrix
// that will move vertices