update to latest Zig (zig fmt)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
419d82d5fd
commit
29964c99bb
39 changed files with 156 additions and 156 deletions
|
|
@ -152,8 +152,8 @@ pub fn machSprite2DInit(adapter: anytype) !void {
|
|||
.sprite_uv_transforms = sprite_uv_transforms,
|
||||
.sprite_sizes = sprite_sizes,
|
||||
.texture_size = Vec2{
|
||||
@intToFloat(f32, sprite2d.state().texture.getWidth()),
|
||||
@intToFloat(f32, sprite2d.state().texture.getHeight()),
|
||||
@floatFromInt(f32, sprite2d.state().texture.getWidth()),
|
||||
@floatFromInt(f32, sprite2d.state().texture.getHeight()),
|
||||
},
|
||||
.texture = sprite2d.state().texture,
|
||||
});
|
||||
|
|
@ -195,10 +195,10 @@ pub fn tick(adapter: anytype) !void {
|
|||
|
||||
// Update uniform buffer
|
||||
const ortho = mat.ortho(
|
||||
-@intToFloat(f32, core.size().width) / 2,
|
||||
@intToFloat(f32, core.size().width) / 2,
|
||||
-@intToFloat(f32, core.size().height) / 2,
|
||||
@intToFloat(f32, core.size().height) / 2,
|
||||
-@floatFromInt(f32, core.size().width) / 2,
|
||||
@floatFromInt(f32, core.size().width) / 2,
|
||||
-@floatFromInt(f32, core.size().height) / 2,
|
||||
@floatFromInt(f32, core.size().height) / 2,
|
||||
-0.1,
|
||||
100000,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue