Class Dynamic2DStruct
java.lang.Object
org.boxutil.define.struct.instance.Dynamic2DStruct
Just for formatted update, without getter.
// 80 byte
struct Dynamic2D { // binding 4
vec4 q22_q23_facing_TrunRate;
vec4 location_Scale;
vec4 velocity_ScaleRate;
vec4 timer;
uvec4 colorBits;
};
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]getData()float[]setColorAlpha(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) setColorAlpha(float lowColor, float highColor, float lowEmissive, float highEmissive) setColorAlpha(int lowColor, int highColor, int lowEmissive, int highEmissive) setColorAlpha(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) setColorBlue(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) setColorBlue(float lowColor, float highColor, float lowEmissive, float highEmissive) setColorBlue(int lowColor, int highColor, int lowEmissive, int highEmissive) setColorBlue(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) setColorGreen(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) setColorGreen(float lowColor, float highColor, float lowEmissive, float highEmissive) setColorGreen(int lowColor, int highColor, int lowEmissive, int highEmissive) setColorGreen(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) setColorRed(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) setColorRed(float lowColor, float highColor, float lowEmissive, float highEmissive) setColorRed(int lowColor, int highColor, int lowEmissive, int highEmissive) setColorRed(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) setFacing(float angle) setLocation(float x, float y) setLocation(org.lwjgl.util.vector.Vector2f location) setScale(float x, float y) setScale(org.lwjgl.util.vector.Vector2f scale) setScaleRate(float x, float y) setScaleRate(org.lwjgl.util.vector.Vector2f scaleRate) setTimer(float fadeIn, float full, float fadeOut) setTurnRate(float turnRate) setVelocity(float x, float y) setVelocity(org.lwjgl.util.vector.Vector2f velocity)
-
Field Details
-
state
protected final float[] state
-
-
Constructor Details
-
Dynamic2DStruct
public Dynamic2DStruct()
-
-
Method Details
-
getData
public float[] getData() -
getDataCompact
public float[] getDataCompact() -
setLocation
-
setLocation
-
setFacing
-
setScale
-
setScale
-
setVelocity
-
setVelocity
-
setTurnRate
-
setScaleRate
-
setScaleRate
-
setColorRed
public Dynamic2DStruct setColorRed(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) -
setColorRed
-
setColorRed
public Dynamic2DStruct setColorRed(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) -
setColorRed
public Dynamic2DStruct setColorRed(float lowColor, float highColor, float lowEmissive, float highEmissive) -
setColorGreen
public Dynamic2DStruct setColorGreen(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) -
setColorGreen
public Dynamic2DStruct setColorGreen(int lowColor, int highColor, int lowEmissive, int highEmissive) -
setColorGreen
public Dynamic2DStruct setColorGreen(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) -
setColorGreen
public Dynamic2DStruct setColorGreen(float lowColor, float highColor, float lowEmissive, float highEmissive) -
setColorBlue
public Dynamic2DStruct setColorBlue(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) -
setColorBlue
-
setColorBlue
public Dynamic2DStruct setColorBlue(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) -
setColorBlue
public Dynamic2DStruct setColorBlue(float lowColor, float highColor, float lowEmissive, float highEmissive) -
setColorAlpha
public Dynamic2DStruct setColorAlpha(byte lowColor, byte highColor, byte lowEmissive, byte highEmissive) -
setColorAlpha
public Dynamic2DStruct setColorAlpha(int lowColor, int highColor, int lowEmissive, int highEmissive) -
setColorAlpha
public Dynamic2DStruct setColorAlpha(Color lowColor, Color highColor, Color lowEmissive, Color highEmissive) -
setColorAlpha
public Dynamic2DStruct setColorAlpha(float lowColor, float highColor, float lowEmissive, float highEmissive) -
setTimer
-