mirror of
https://github.com/yeslayla/golang-game-framework.git
synced 2025-07-07 19:14:54 +02:00
Initial commit
This commit is contained in:
21
rendering/render2d.go
Normal file
21
rendering/render2d.go
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user