More convenience functions in structs
This commit is contained in:
parent
42671d0195
commit
7a9cdd3af0
9 changed files with 167 additions and 71 deletions
|
|
@ -20,7 +20,7 @@ pub fn main() anyerror!void {
|
|||
|
||||
var outlineSize: f32 = 2.0;
|
||||
const outlineColor = [4]f32{ 1.0, 0.0, 0.0, 1.0 }; // Normalized RED color
|
||||
const textureSize = rl.Vector2{ .x = @intToFloat(f32, texture.width), .y = @intToFloat(f32, texture.height) };
|
||||
const textureSize = rl.Vector2.init(@intToFloat(f32, texture.width), @intToFloat(f32, texture.height));
|
||||
|
||||
// Get shader locations
|
||||
const outlineSizeLoc = rl.GetShaderLocation(shdrOutline, "outlineSize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue