Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageButton ¶
type ImageButton struct { Image *sdl.Texture Rect sdl.Rect WasLeftClicked bool WasRightClicked bool IsSelected bool SelectedTex *sdl.Texture }
func NewImageButton ¶
func (*ImageButton) Draw ¶
func (button *ImageButton) Draw(renderer *sdl.Renderer)
func (*ImageButton) Update ¶
func (button *ImageButton) Update(mouseState *MouseState)
type MouseState ¶
type MouseState struct { LeftButton bool RightButton bool PrevLeftButton bool PrevRightButton bool PrevX, PrevY int X, Y int }
func GetMouseState ¶
func GetMouseState() *MouseState
func (*MouseState) Update ¶
func (mouseState *MouseState) Update()
Click to show internal directories.
Click to hide internal directories.