Render sprites from sprite sheets (no animation yet)

This commit is contained in:
stevenhowes
2022-01-17 22:36:05 +00:00
parent fa13e4c97b
commit 2bf460b999
5 changed files with 80 additions and 5 deletions
+2
View File
@@ -48,6 +48,8 @@ func (sr *spriteRenderer) onUpdate() error {
func (sr *spriteRenderer) onDraw() error {
return drawTexture(
sr.tex,
VectorInt32{-1, -1},
VectorInt32{0, 0},
sr.container.Position,
sr.container.Rotation,
sr.container.Renderer)