debug info for upcoming wires

This commit is contained in:
minjaesong
2019-05-02 00:56:25 +09:00
parent 5816e678bf
commit 65e01b1eb0
3 changed files with 27 additions and 2 deletions

View File

@@ -215,6 +215,9 @@ internal object BlocksDrawer {
renderUsingBuffer(FLUID, projectionMatrix)
}
var drawWires = 0
private set
internal fun drawFront(projectionMatrix: Matrix4, drawWires: Int) {
// blend mul
Gdx.gl.glEnable(GL20.GL_TEXTURE_2D)
@@ -228,8 +231,9 @@ internal object BlocksDrawer {
gdxSetBlendNormal()
this.drawWires = drawWires
if (drawWires != 0) {
//println("drawing wires")
//println("Wires! draw: $drawWires") // use F10 instead
renderUsingBuffer(WIRE, projectionMatrix)
}
}