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) Close()
- 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) HandleGamepadInput(dt float64) input.GamepadCapture
- func (g *Game) HandleKeyPress(code input.KeyCode)
- func (g *Game) InputState() *input.State
- func (g *Game) PrepareKeyInput(code input.KeyCode, mods gpucontext.Modifiers)
- func (g *Game) PrepareTextInput(code input.KeyCode) bool
- 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) Close ¶ added in v0.16.0
func (g *Game) Close()
Close releases resources after the render loop has stopped. Android can start another game in the same process after a surface is recreated.
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) HandleGamepadInput ¶ added in v0.16.0
func (g *Game) HandleGamepadInput(dt float64) input.GamepadCapture
func (*Game) HandleKeyPress ¶ added in v0.13.0
func (*Game) InputState ¶
func (*Game) PrepareKeyInput ¶ added in v0.13.0
func (g *Game) PrepareKeyInput(code input.KeyCode, mods gpucontext.Modifiers)
func (*Game) PrepareTextInput ¶ added in v0.13.0
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.