Documentation ¶
Index ¶
- type Tile
- func (t *Tile) Draw()
- func (t *Tile) GetCount() (x, y int)
- func (t *Tile) GetOffset() (x, y int)
- func (t *Tile) GetPosition(xoff, yoff int) (x, y int)
- func (t *Tile) GetSize() (width, height int)
- func (t *Tile) GetTile(x, y int) (xoff, yoff int)
- func (t *Tile) SetImageFromData(x, y int, data []byte) (err error)
- func (t *Tile) SetImageFromImage(x, y int, img image.Image)
- func (t *Tile) SetOffset(x, y int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tile ¶
type Tile struct {
// contains filtered or unexported fields
}
瓦片
func (*Tile) SetImageFromData ¶
设置图片
Click to show internal directories.
Click to hide internal directories.