Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEmulator ¶
type CloudEmulator interface { // LoadMeta returns meta data of emulator. Refer below LoadMeta(path string) Metadata // Start is called after LoadGame Start() // SetViewport sets viewport size SetViewport(width int, height int) // GetViewport debug encoder image GetViewport() interface{} // SaveGame save game state, saveExtraFunc is callback to do extra step. Ex: save to google cloud SaveGame(saveExtraFunc func() error) error // LoadGame load game state LoadGame() error // GetHashPath returns the path emulator will save state to GetHashPath() string // Close will be called when the game is done Close() ToggleMultitap() error }
CloudEmulator is the interface of cloud emulator. Currently NES emulator and RetroArch implements this in codebase
type Metadata ¶ added in v2.4.0
type Metadata struct { // the full path to some emulator lib LibPath string // the full path to the emulator config ConfigPath string AudioSampleRate int Fps float64 BaseWidth int BaseHeight int Ratio float64 Rotation image.Rotate IsGlAllowed bool UsesLibCo bool AutoGlContext bool HasMultitap bool }
Directories ¶
Path | Synopsis |
---|---|
This package contains functions for Pi/2 step rotation of points in a 2-dimensional space.
|
This package contains functions for Pi/2 step rotation of points in a 2-dimensional space. |
libretro
|
|
Click to show internal directories.
Click to hide internal directories.