Documentation ¶
Index ¶
- Constants
- Variables
- func CfgRootJoin(p ...string) string
- func ConfigWithDebug(rnd *sdlRenderer) error
- func ConfigWithFullscreen(rnd *sdlRenderer) error
- func ConfigWithNoVSync(rnd *sdlRenderer) error
- func Init() error
- func NewId64() uint64
- func NewRenderer(configs ...Config) (*sdlRenderer, error)
- func Shutdown()
- type Config
- type Event
- type KeyDownEvent
- type KeyUpEvent
- type QuitEvent
- type Renderer
Constants ¶
View Source
const ( KeyUnknown = iota KeyUp KeyDown KeyLeft KeyRight KeyEsc KeyReturn )
Variables ¶
View Source
var (
ConfigPath string
)
Functions ¶
func CfgRootJoin ¶
func ConfigWithDebug ¶
func ConfigWithDebug(rnd *sdlRenderer) error
func ConfigWithFullscreen ¶
func ConfigWithFullscreen(rnd *sdlRenderer) error
func ConfigWithNoVSync ¶
func ConfigWithNoVSync(rnd *sdlRenderer) error
func NewRenderer ¶
Types ¶
type Config ¶
type Config func(*sdlRenderer) error
func ConfigWithDiv ¶
func ConfigWithSize ¶
func ConfigWithTitle ¶
type KeyDownEvent ¶
type KeyDownEvent KeyUpEvent
type KeyUpEvent ¶
Click to show internal directories.
Click to hide internal directories.