Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBidimensionalElementArray ¶
func BuildBidimensionalElementArray(size *Size, wrap bool)
Types ¶
type Drawer ¶
type Drawer struct {
Size *Vector2
Manager *Manager
Renderer *sdl.Renderer
Display *sdl.Texture
MustDraw bool
}
type Manager ¶
type Manager struct {
Visuals *Visuals
TextureManager *TextureManager
Drawer *Drawer
TileSize *Vector2
LogicalSize *Vector2
Window *sdl.Window
DrawEvent *sdl.UserEvent
Running bool
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) CreateDrawer ¶
func (manager *Manager) CreateDrawer()
func (*Manager) CreateWindow ¶
func (manager *Manager) CreateWindow()
func (*Manager) InitializeSDL ¶
func (manager *Manager) InitializeSDL()
func (*Manager) RequestDraw ¶
func (manager *Manager) RequestDraw()
type Rectangle ¶
func NewRectangle ¶
type TextureManager ¶
func NewTextureManager ¶
func NewTextureManager(manager *Manager) *TextureManager
func (*TextureManager) Load ¶
func (textureManager *TextureManager) Load(name string)
type Vector2 ¶
func NewVector2 ¶
type VisualColor ¶
func (*VisualColor) Draw ¶
func (visualColor *VisualColor) Draw(drawer *Drawer)
Click to show internal directories.
Click to hide internal directories.