mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: Update the document about DrawImage
This commit is contained in:
parent
79b5712410
commit
c1c0306471
8
image.go
8
image.go
@ -218,14 +218,14 @@ func (i *Image) disposeMipmaps() {
|
||||
// when the successive calls of DrawImages satisfies the below conditions:
|
||||
//
|
||||
// * All render targets are same (A in A.DrawImage(B, op))
|
||||
// * All render sources are same (B in A.DrawImage(B, op))
|
||||
// * This is not a strong request since different images might share a same inner
|
||||
// OpenGL texture in high possibility. This is not 100%, so using the same render
|
||||
// source is safer.
|
||||
// * All ColorM values are same, or all the ColorM have only 'scale' operations
|
||||
// * All CompositeMode values are same
|
||||
// * All Filter values are same
|
||||
//
|
||||
// Even when all the above conditions are satisfied, multiple draw commands can be used in really rare cases. Ebiten
|
||||
// images usually share an internal automatic texture atlas, but when you consume the atlas, or you create a huge
|
||||
// image, those images cannot be on the same texture atlas. In this case, draw commands are separated.
|
||||
//
|
||||
// For more performance tips, see https://github.com/hajimehoshi/ebiten/wiki/Performance-Tips.
|
||||
//
|
||||
// DrawImage always returns nil as of 1.5.0-alpha.
|
||||
|
Loading…
Reference in New Issue
Block a user