mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
Revert "trying bytebuf and FloatVector"
This reverts commit 2941a0943f.
Benchmark showed no discernible differences.
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
package net.torvald.terrarum.gameactors
|
||||
|
||||
import jdk.incubator.vector.FloatVector
|
||||
import net.torvald.gdx.graphics.VectorArray
|
||||
import net.torvald.gdx.graphics.Cvec
|
||||
|
||||
/**
|
||||
* Lightbox is defined based on pixelwise position in the world!
|
||||
*/
|
||||
class Lightbox() {
|
||||
var hitbox: Hitbox = Hitbox(0.0,0.0,0.0,0.0)
|
||||
var light: FloatVector = FloatVector.broadcast(VectorArray.SPECIES, 0f)
|
||||
var light: Cvec = Cvec()
|
||||
|
||||
constructor(hitbox: Hitbox, light: FloatVector) : this() {
|
||||
constructor(hitbox: Hitbox, light: Cvec) : this() {
|
||||
this.hitbox = hitbox
|
||||
this.light = light
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user