mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
vc ppu: some updates for Lua
Former-commit-id: 3d99a6788d05eaf3e90bffe8d412f0ab92e7f9bb Former-commit-id: 306ed39d09f2b0b5461cb71d0cef96d7d5793769
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user