mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
graphics: Add comments
This commit is contained in:
parent
6eb148b9a1
commit
94d54b7d2c
2
image.go
2
image.go
@ -227,6 +227,8 @@ func (i *Image) ReplacePixels(p []uint8) error {
|
|||||||
type DrawImageOptions struct {
|
type DrawImageOptions struct {
|
||||||
// SourceRect is the region of the source image to draw.
|
// SourceRect is the region of the source image to draw.
|
||||||
// If SourceRect is nil, whole image is used.
|
// If SourceRect is nil, whole image is used.
|
||||||
|
//
|
||||||
|
// It is assured that texels out of the SourceRect are never used.
|
||||||
SourceRect *image.Rectangle
|
SourceRect *image.Rectangle
|
||||||
|
|
||||||
// GeoM is a geometry matrix to draw.
|
// GeoM is a geometry matrix to draw.
|
||||||
|
Loading…
Reference in New Issue
Block a user