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:
18
rendering/camera2d.go
Normal file
18
rendering/camera2d.go
Normal file
@ -0,0 +1,18 @@
|
||||
package rendering
|
||||
|
||||
import "github.com/manleydev/golang-game-framework/core"
|
||||
|
||||
type Camera2D interface {
|
||||
GetZoom() float64
|
||||
SetZoom(float64)
|
||||
|
||||
GetOffset() core.Vector2
|
||||
SetOffset(core.Vector2)
|
||||
|
||||
GetModifiers() Camera2DModifiers
|
||||
}
|
||||
|
||||
type Camera2DModifiers struct {
|
||||
Zoom float64
|
||||
Offset core.Vector2
|
||||
}
|
Reference in New Issue
Block a user