mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
Render sprites from sprite sheets (no animation yet)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user