public class QuadTransformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
NORMAL |
private static int |
POSITION |
private TransformationMatrix |
transform |
Constructor and Description |
---|
QuadTransformer(TransformationMatrix transform) |
Modifier and Type | Method and Description |
---|---|
private static int |
findNormalOffset(VertexFormat fmt) |
private static int |
findPositionOffset(VertexFormat fmt) |
private static int |
getAtByteOffset(int[] inData,
int offset) |
java.util.List<BakedQuad> |
processMany(java.util.List<BakedQuad> inputs)
Processes multiple quads, producing a new array of new quads.
|
void |
processManyInPlace(java.util.List<BakedQuad> inputs)
Processes multiple quads in place, modifying the input quads.
|
BakedQuad |
processOne(BakedQuad input)
Processes a single quad, producing a new quad.
|
BakedQuad |
processOneInPlace(BakedQuad input)
Processes a single quad, modifying the input quad.
|
private void |
processVertices(int[] inData,
int[] outData) |
private static void |
putAtByteOffset(int[] outData,
int offset,
int value) |
private static final int POSITION
private static final int NORMAL
private final TransformationMatrix transform
public QuadTransformer(TransformationMatrix transform)
private void processVertices(int[] inData, int[] outData)
private static int getAtByteOffset(int[] inData, int offset)
private static void putAtByteOffset(int[] outData, int offset, int value)
private static int findPositionOffset(VertexFormat fmt)
private static int findNormalOffset(VertexFormat fmt)
public BakedQuad processOne(BakedQuad input)
input
- A single quad to transform.public BakedQuad processOneInPlace(BakedQuad input)
input
- A single quad to transform.public java.util.List<BakedQuad> processMany(java.util.List<BakedQuad> inputs)
inputs
- The list of quads to transformpublic void processManyInPlace(java.util.List<BakedQuad> inputs)
inputs
- The list of quads to transform