aboutsummaryrefslogtreecommitdiff
path: root/src/draw.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-17 13:10:38 -0500
committeriamcheeseman <[hidden email]>2026-01-17 13:10:47 -0500
commiteee06361048e34f6ca21348e8776636da95ef3f8 (patch)
tree7db94de6a1adeac5baf462c963ba53e6fcc31856 /src/draw.odin
parentf60ae3ed7160a4f3c523b2f56ad06dfc8319aca4 (diff)
add props
Diffstat (limited to 'src/draw.odin')
-rw-r--r--src/draw.odin7
1 files changed, 7 insertions, 0 deletions
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,