aboutsummaryrefslogtreecommitdiff
path: root/src/draw/sprite.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw/sprite.odin')
-rw-r--r--src/draw/sprite.odin6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/draw/sprite.odin b/src/draw/sprite.odin
index ff8ce58..59d1c32 100644
--- a/src/draw/sprite.odin
+++ b/src/draw/sprite.odin
@@ -1,12 +1,10 @@
package draw
import "core:log"
-import "core:math"
import "core:image"
import "core:image/qoi"
import sg "shared:sokol/gfx"
-import stime "shared:sokol/time"
Sprite :: struct {
image: sg.Image,
@@ -85,13 +83,13 @@ update_sprite :: proc(sprite: ^Sprite, dt: f32) {
}
}
-draw_sprite :: proc(
+sprite :: proc(
r: ^Renderer,
sprite: Sprite,
) {
frame := sprite.anim.frames[sprite.current_frame]
- draw_texture(
+ texture(
r,
sprite.image,
Rect {