vc ppu: some updates for Lua

Former-commit-id: 3d99a6788d05eaf3e90bffe8d412f0ab92e7f9bb
Former-commit-id: 306ed39d09f2b0b5461cb71d0cef96d7d5793769
This commit is contained in:
Song Minjae
2017-02-26 03:08:58 +09:00
parent 679a65a12e
commit 71091cce98
4 changed files with 121 additions and 40 deletions

View File

@@ -53,14 +53,15 @@ class StateBlurTest : BasicGameState() {
kotlin.repeat(3) { fastBoxBlur(bluredImage, 3) }
g.background = Color(0x404040)
val image = bluredImage.image
val image = bluredImage.image // ImageBuffer.getImage() always HARDCOPIES texture data by
// allocating new ByteBuffer. We need variable so that we can destroy() it manually
g.drawImage(image,
Terrarum.WIDTH.minus(testImage.width).div(2f).floor() + FastMath.cos(theta) * 120,
Terrarum.HEIGHT.minus(testImage.height).div(2f).floor() + FastMath.sin(theta) * 40
)
g.flush()
image.destroy()
image.destroy() // You are done and you will be terminated, for the perkeleen memory's sake
}
private val isLE: Boolean