all: fix pointless discards; typo; fix libmach compilation on Linux (#541)
This commit is contained in:
parent
38c4fc5b01
commit
b0cd4ec1a0
4 changed files with 5 additions and 3 deletions
|
|
@ -47,7 +47,6 @@ pub fn init(engine: *ecs.World(modules)) !void {
|
|||
const player = try engine.entities.new();
|
||||
try engine.entities.setComponent(player, .renderer, .location, .{ .x = 0, .y = 0, .z = 0 });
|
||||
try engine.entities.setComponent(player, .physics2d, .location, .{ .x = 0, .y = 0 });
|
||||
_ = player;
|
||||
|
||||
// TODO: there could be an entities wrapper to interact with a single namespace so you don't
|
||||
// have to pass it in as a parameter always?
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ pub fn init(app: *App, core: *mach.Core) !void {
|
|||
_ = window_height;
|
||||
_ = triangle_scale;
|
||||
_ = img_uv_data;
|
||||
_ = white_texture_uv_data;
|
||||
// try draw.equilateralTriangle(app, .{ window_width / 2, window_height / 2 }, triangle_scale, .{}, img_uv_data);
|
||||
// try draw.equilateralTriangle(app, .{ window_width / 2, window_height / 2 - triangle_scale }, triangle_scale, .{ .type = .concave }, img_uv_data);
|
||||
// try draw.equilateralTriangle(app, .{ window_width / 2 - triangle_scale, window_height / 2 - triangle_scale / 2 }, triangle_scale, .{ .type = .convex }, white_texture_uv_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue