Versions in this module Expand all Collapse all v0 v0.2.0 Dec 6, 2019 Changes in this version + type AtomicFloat struct + func NewAtomicFloat(f float64) AtomicFloat + func (f *AtomicFloat) Add(n float64) + func (f *AtomicFloat) Get() float64 + func (f *AtomicFloat) Set(n float64) + type Point struct + func NewPoint(x, y int32) Point + func (p *Point) AddPos(s Point) + func (p *Point) AddX(x int32) + func (p *Point) AddXY(x, y int32) + func (p *Point) AddY(y int32) + func (p *Point) GetX() int32 + func (p *Point) GetXY() (int32, int32) + func (p *Point) GetY() int32 + func (p *Point) SetPos(s Point) + func (p *Point) SetX(x int32) + func (p *Point) SetXY(x, y int32) + func (p *Point) SetY(y int32) + func (p Point) Equal(s Point) bool + func (p Point) SDLPoint() *sdl.Point + type Rect struct + func NewRect(x, y, w, h int32) Rect + func (r *Rect) AddH(h int32) + func (r *Rect) AddW(w int32) + func (r *Rect) AddWH(w, h int32) + func (r *Rect) AddX(x int32) + func (r *Rect) AddXY(x, y int32) + func (r *Rect) AddY(y int32) + func (r *Rect) Equals(s Rect) bool + func (r *Rect) GetH() int32 + func (r *Rect) GetW() int32 + func (r *Rect) GetWH() (int32, int32) + func (r *Rect) GetX() int32 + func (r *Rect) GetXY() (int32, int32) + func (r *Rect) GetY() int32 + func (r *Rect) SDLRect() *sdl.Rect + func (r *Rect) SetH(h int32) + func (r *Rect) SetPos(s Rect) + func (r *Rect) SetRect(s Rect) + func (r *Rect) SetW(w int32) + func (r *Rect) SetWH(w, h int32) + func (r *Rect) SetX(x int32) + func (r *Rect) SetXY(x, y int32) + func (r *Rect) SetXYWH(x, y, w, h int32) + func (r *Rect) SetY(y int32) + type Transform struct + Center Point + Rotation AtomicFloat + func NewTransform(x, y, w, h int32, rot float64, center Point) Transform