Documentation
¶
Overview ¶
Package app owns the high-level client object that connects configuration, resources, networking, audio, session state, and the active game mode.
Index ¶
- type Game
- func (g *Game) CompleteScreenshot(path string, err error)
- func (g *Game) ConsumeScreenshotRequest() (string, bool)
- func (g *Game) Draw(screen *render.Frame)
- func (g *Game) DrawOverlay(screen *render.Frame)
- func (g *Game) DrawUIOverlay(screen *render.Frame)
- func (g *Game) FrameSubmitted()
- func (g *Game) InputState() *input.State
- func (g *Game) RequestQuit()
- func (g *Game) RequestScreenshot() (string, error)
- func (g *Game) Resize(width, height int)
- func (g *Game) RuntimeFPS() bool
- func (g *Game) RuntimeFullscreen() bool
- func (g *Game) RuntimeVSync() bool
- func (g *Game) SetQuitFunc(quit func())
- func (g *Game) SetUIApp(uiApp client.UIApp)
- func (g *Game) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) CompleteScreenshot ¶
func (*Game) ConsumeScreenshotRequest ¶
func (*Game) DrawOverlay ¶
func (*Game) DrawUIOverlay ¶
func (*Game) FrameSubmitted ¶ added in v0.7.0
func (g *Game) FrameSubmitted()
func (*Game) InputState ¶
func (*Game) RequestQuit ¶
func (g *Game) RequestQuit()
func (*Game) RequestScreenshot ¶
func (*Game) RuntimeFPS ¶
func (*Game) RuntimeFullscreen ¶
func (*Game) RuntimeVSync ¶
func (*Game) SetQuitFunc ¶
func (g *Game) SetQuitFunc(quit func())
Click to show internal directories.
Click to hide internal directories.