minor change in code
This commit is contained in:
parent
eb0c51e137
commit
3579be2d83
|
@ -166,8 +166,8 @@ func (td *TrianglesDrawer) Dirty() {
|
||||||
// Sprite is a picture that can be drawn onto a Target. To change the position/rotation/scale of
|
// Sprite is a picture that can be drawn onto a Target. To change the position/rotation/scale of
|
||||||
// the Sprite, use Target's SetTransform method.
|
// the Sprite, use Target's SetTransform method.
|
||||||
type Sprite struct {
|
type Sprite struct {
|
||||||
td TrianglesDrawer
|
|
||||||
data TrianglesData
|
data TrianglesData
|
||||||
|
td TrianglesDrawer
|
||||||
pic *Picture
|
pic *Picture
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,8 +219,8 @@ func (s *Sprite) Draw(t Target) {
|
||||||
|
|
||||||
// Polygon is a convex polygon shape filled with a single color.
|
// Polygon is a convex polygon shape filled with a single color.
|
||||||
type Polygon struct {
|
type Polygon struct {
|
||||||
td TrianglesDrawer
|
|
||||||
data TrianglesData
|
data TrianglesData
|
||||||
|
td TrianglesDrawer
|
||||||
col NRGBA
|
col NRGBA
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue