mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 18:52:44 +01:00
Modify docs
This commit is contained in:
parent
0fe8387a5a
commit
3e576c97f3
@ -31,12 +31,12 @@ type ImagePart struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DrawWholeImage draws the whole image.
|
// DrawWholeImage draws the whole image.
|
||||||
func DrawWholeImage(r *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
|
func DrawWholeImage(target *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
|
||||||
w, h := image.Size()
|
w, h := image.Size()
|
||||||
parts := []ImagePart{
|
parts := []ImagePart{
|
||||||
{Rect{0, 0, float64(w), float64(h)}, Rect{0, 0, float64(w), float64(h)}},
|
{Rect{0, 0, float64(w), float64(h)}, Rect{0, 0, float64(w), float64(h)}},
|
||||||
}
|
}
|
||||||
return r.DrawImage(image, parts, geo, color)
|
return target.DrawImage(image, parts, geo, color)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter represents the type of filter to be used when an image is maginified or minified.
|
// Filter represents the type of filter to be used when an image is maginified or minified.
|
||||||
|
1
image.go
1
image.go
@ -98,6 +98,7 @@ type syncer interface {
|
|||||||
|
|
||||||
// Image represents an image.
|
// Image represents an image.
|
||||||
// The pixel format is alpha-premultiplied.
|
// The pixel format is alpha-premultiplied.
|
||||||
|
// Image implements image.Image.
|
||||||
type Image struct {
|
type Image struct {
|
||||||
syncer syncer
|
syncer syncer
|
||||||
inner *innerImage
|
inner *innerImage
|
||||||
|
Loading…
Reference in New Issue
Block a user