Fixed log output in culling, updated demo.

This commit is contained in:
Marvin Blum
2016-05-07 11:34:01 +02:00
parent 80e5cb20f8
commit 1d974566de
3 changed files with 16 additions and 7 deletions

View File

@@ -1,9 +1,5 @@
package goga
import (
"log"
)
const (
culling_2d_name = "culling2d"
)
@@ -90,10 +86,8 @@ func (c *Culling2D) Update(delta float64) {
c.cullables[i].Pos.Y > c.viewport.W ||
c.cullables[i].Pos.Y+c.cullables[i].Size.Y < c.viewport.Y {
c.cullables[i].Visible = false
log.Print("h")
} else {
c.cullables[i].Visible = true
log.Print("s")
}
}
}