26 lines
422 B
Go
26 lines
422 B
Go
package game
|
|
|
|
import (
|
|
"time"
|
|
|
|
"edgaru089.ink/go/gl01/internal/util/itype"
|
|
"github.com/inkyblackness/imgui-go/v4"
|
|
)
|
|
|
|
// Game holds a game scene.
|
|
type Game struct {
|
|
fullscreen bool
|
|
lastPos, lastSize itype.Vec2i // Window size before entering fullscreen
|
|
|
|
runtime time.Duration
|
|
|
|
io imgui.IO
|
|
gui guiState
|
|
paused bool
|
|
}
|
|
|
|
// NewGame creates a new, empty Game.
|
|
func NewGame() (g *Game) {
|
|
return &Game{}
|
|
}
|