Documentation ¶
Index ¶
- type Flag
- type IKeyboardInput
- type IMouseInput
- type IWindow
- type SDLKeyboardInput
- type SDLMouseInput
- type SDLWindow
- func (window *SDLWindow) Destroy()
- func (window *SDLWindow) GetKeyboardInput() IKeyboardInput
- func (window *SDLWindow) GetMouseInput() IMouseInput
- func (window *SDLWindow) GetTimeDeltaAndFPS() (float32, uint32)
- func (window *SDLWindow) GetTitle() string
- func (window *SDLWindow) PollEvents()
- func (window *SDLWindow) SetTitle(title string)
- func (window *SDLWindow) ShouldClose() bool
- func (window *SDLWindow) SwapWindow()
- func (window *SDLWindow) UnmarshalYAML(value *yaml.Node) error
- type SyncInterval
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKeyboardInput ¶
type IMouseInput ¶
type IWindow ¶
type IWindow interface { FrameBuffer.IFrameBuffer SwapWindow() PollEvents() ShouldClose() bool GetTimeDeltaAndFPS() (float32, uint32) GetKeyboardInput() IKeyboardInput GetMouseInput() IMouseInput }
type SDLKeyboardInput ¶
type SDLKeyboardInput struct {
// contains filtered or unexported fields
}
func NewSDLKeyboardInput ¶
func NewSDLKeyboardInput() *SDLKeyboardInput
func (*SDLKeyboardInput) IsKeyPressed ¶
func (input *SDLKeyboardInput) IsKeyPressed(key string) bool
type SDLMouseInput ¶
type SDLMouseInput struct {
// contains filtered or unexported fields
}
func NewSDLMouseInput ¶
func NewSDLMouseInput() *SDLMouseInput
func (*SDLMouseInput) GetRelativeMovement ¶
func (input *SDLMouseInput) GetRelativeMovement() (float32, float32)
type SDLWindow ¶
type SDLWindow struct { FrameBuffer.FrameBuffer *sdl.Window FpsSmoothing float32 TitlebarFPS bool // contains filtered or unexported fields }
func NewSDLWindow ¶
func (*SDLWindow) GetKeyboardInput ¶
func (window *SDLWindow) GetKeyboardInput() IKeyboardInput
func (*SDLWindow) GetMouseInput ¶
func (window *SDLWindow) GetMouseInput() IMouseInput
func (*SDLWindow) GetTimeDeltaAndFPS ¶
func (*SDLWindow) PollEvents ¶
func (window *SDLWindow) PollEvents()
func (*SDLWindow) ShouldClose ¶
func (*SDLWindow) SwapWindow ¶
func (window *SDLWindow) SwapWindow()
func (*SDLWindow) UnmarshalYAML ¶
type SyncInterval ¶
type SyncInterval int
func (*SyncInterval) UnmarshalYAML ¶
func (sync *SyncInterval) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.