mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: update comment
This commit is contained in:
parent
d73e8f785d
commit
d11c46ef1f
4
image.go
4
image.go
@ -749,8 +749,8 @@ func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawR
|
|||||||
// If a sub-image is used as a rendering source, the image is used as if it is a small image.
|
// If a sub-image is used as a rendering source, the image is used as if it is a small image.
|
||||||
// If a sub-image is used as a rendering destination, the region being rendered is clipped.
|
// If a sub-image is used as a rendering destination, the region being rendered is clipped.
|
||||||
//
|
//
|
||||||
// Successive uses of multiple various regions as rendering destination is efficient
|
// Successive uses of multiple various regions as rendering destination is still efficient
|
||||||
// when all the underlying images are the same.
|
// when all the underlying images are the same, but some platforms like browsers might not work efficiently.
|
||||||
func (i *Image) SubImage(r image.Rectangle) image.Image {
|
func (i *Image) SubImage(r image.Rectangle) image.Image {
|
||||||
i.copyCheck()
|
i.copyCheck()
|
||||||
if i.isDisposed() {
|
if i.isDisposed() {
|
||||||
|
Loading…
Reference in New Issue
Block a user