mirror of
https://github.com/yeslayla/golang-game-framework.git
synced 2025-04-27 20:05:01 +02:00
22 lines
342 B
Go
22 lines
342 B
Go
package rendering
|
|
|
|
import (
|
|
"github.com/manleydev/golang-game-framework/core"
|
|
)
|
|
|
|
type Renderer2D interface {
|
|
DrawTexture2D(DrawTexture2DInput) error
|
|
|
|
Draw() error
|
|
Update() error
|
|
Destroy()
|
|
SetCamera(*Camera2D) error
|
|
}
|
|
|
|
type DrawTexture2DInput struct {
|
|
Texture Texture2D
|
|
Rect core.Rect2D
|
|
Position core.Vector2
|
|
Rotation float64
|
|
}
|