From eee06361048e34f6ca21348e8776636da95ef3f8 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sat, 17 Jan 2026 13:10:38 -0500 Subject: add props --- src/draw.odin | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/draw.odin') diff --git a/src/draw.odin b/src/draw.odin index 43d8c0a..d821a10 100644 --- a/src/draw.odin +++ b/src/draw.odin @@ -2,8 +2,10 @@ package demonchime import "core:c" import "core:math" +import "core:math/linalg" import rl "vendor:raylib" +import rlgl "vendor:raylib/rlgl" Color :: [4]f32 @@ -11,6 +13,11 @@ SCREEN_WIDTH :: 320 SCREEN_HEIGHT :: 320 SCREEN_SIZE :: Vec2{SCREEN_WIDTH, SCREEN_HEIGHT} +// @(default_calling_convention = "c") +// foreign lib { +// DrawTexturePoly :: proc(texture: rl.Texture2D, center: rl.Vector2, points: [^]rl.Vector2, textcoords: [^]rl.Vector2, point_count: c.int, color: Color) --- // Draw a regular polygon (Vector version) +// } + renderer: struct { screen: rl.RenderTexture2D, tint: Color, -- cgit v1.3-2-g0d8e