Documentation ¶
Index ¶
- Constants
- type Button
- type Coord
- type Display
- type Image
- type ImageLoader
- type Just
- type RGBA
- type Rect
- type SdlDisplay
- func (display *SdlDisplay) Clear() error
- func (display *SdlDisplay) DisplayImage(image Image, pos Coord) error
- func (display *SdlDisplay) DrawButton(button Button) error
- func (display *SdlDisplay) DrawRect(pos Coord, size Rect, bgColor RGBA, fgColor RGBA) error
- func (display *SdlDisplay) DrawText(text string, pos Coord, color RGBA, hJust Just, vJust Just) error
- func (display *SdlDisplay) Init() error
- func (display *SdlDisplay) Refresh()
- func (display *SdlDisplay) Terminate() error
- type SdlImage
- type SdlImageLoader
Constants ¶
View Source
const WINDOW_TITLE string = "Learning Go/SDL"
View Source
const WINDOW_WIDTH, WINDOW_HEIGHT int32 = 800, 600
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SdlDisplay ¶
type SdlDisplay struct {
// contains filtered or unexported fields
}
func NewSdlDisplay ¶
func NewSdlDisplay(fontPath string) *SdlDisplay
func (*SdlDisplay) Clear ¶
func (display *SdlDisplay) Clear() error
func (*SdlDisplay) DisplayImage ¶
func (display *SdlDisplay) DisplayImage(image Image, pos Coord) error
func (*SdlDisplay) DrawButton ¶
func (display *SdlDisplay) DrawButton(button Button) error
func (*SdlDisplay) Init ¶
func (display *SdlDisplay) Init() error
func (*SdlDisplay) Refresh ¶
func (display *SdlDisplay) Refresh()
func (*SdlDisplay) Terminate ¶
func (display *SdlDisplay) Terminate() error
type SdlImage ¶
type SdlImageLoader ¶
type SdlImageLoader struct {
// contains filtered or unexported fields
}
func CreateSdlImageLoader ¶
func CreateSdlImageLoader(resourcesBasePath string) (SdlImageLoader, error)
Click to show internal directories.
Click to hide internal directories.