mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
graphics: Add comments
This commit is contained in:
parent
d3bd858aba
commit
5f04f05cb1
2
image.go
2
image.go
@ -376,6 +376,8 @@ func (i *Image) drawImage(img *Image, options *DrawImageOptions) {
|
||||
ca = body[15]
|
||||
}
|
||||
var vs []float32
|
||||
// TODO: This is too tricky: src is a whole image when level == 0,
|
||||
// or a part of the image when level > 0. Do refactoring.
|
||||
if level == 0 {
|
||||
vs = src.QuadVertices(sx0, sy0, sx1, sy1, a, b, c, d, tx, ty, cr, cg, cb, ca)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user