Initial commit

This commit is contained in:
2022-06-05 12:54:30 -04:00
commit cb1bdec005
21 changed files with 702 additions and 0 deletions

21
rendering/render2d.go Normal file
View 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
}