mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
graphicsutil: Fix comments
This commit is contained in:
parent
cf2fa8873a
commit
d08ae0dd66
@ -147,8 +147,10 @@ func Vertex(width, height int, dx, dy, sx, sy float32, cr, cg, cb, ca float32) [
|
|||||||
wf := float32(width)
|
wf := float32(width)
|
||||||
hf := float32(height)
|
hf := float32(height)
|
||||||
|
|
||||||
// Specifying a range explicitly here is redundant but this helps optimization
|
// Specify -1 for the source region, which means the source region is ignored.
|
||||||
// to eliminate boundry checks.
|
//
|
||||||
|
// NaN would make more sense to represent an invalid state, but vertices including NaN values doesn't work on
|
||||||
|
// some machines (#696). Let's use negative numbers to represent such state.
|
||||||
vs := theVerticesBackend.sliceForOneQuad()[0:10]
|
vs := theVerticesBackend.sliceForOneQuad()[0:10]
|
||||||
vs[0] = dx
|
vs[0] = dx
|
||||||
vs[1] = dy
|
vs[1] = dy
|
||||||
|
Loading…
Reference in New Issue
Block a user