mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 18:52:44 +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]
|
ca = body[15]
|
||||||
}
|
}
|
||||||
var vs []float32
|
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 {
|
if level == 0 {
|
||||||
vs = src.QuadVertices(sx0, sy0, sx1, sy1, a, b, c, d, tx, ty, cr, cg, cb, ca)
|
vs = src.QuadVertices(sx0, sy0, sx1, sy1, a, b, c, d, tx, ty, cr, cg, cb, ca)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user