Class QuadTransformer


  • public class QuadTransformer
    extends java.lang.Object
    • Field Detail

      • POSITION

        private static final int POSITION
      • NORMAL

        private static final int NORMAL
    • Method Detail

      • processVertices

        private void processVertices​(int[] inData,
                                     int[] outData)
      • getAtByteOffset

        private static int getAtByteOffset​(int[] inData,
                                           int offset)
      • putAtByteOffset

        private static void putAtByteOffset​(int[] outData,
                                            int offset,
                                            int value)
      • findPositionOffset

        private static int findPositionOffset​(VertexFormat fmt)
      • findNormalOffset

        private static int findNormalOffset​(VertexFormat fmt)
      • processOne

        public BakedQuad processOne​(BakedQuad input)
        Processes a single quad, producing a new quad.
        Parameters:
        input - A single quad to transform.
        Returns:
        A new BakedQuad object with the new position.
      • processOneInPlace

        public BakedQuad processOneInPlace​(BakedQuad input)
        Processes a single quad, modifying the input quad.
        Parameters:
        input - A single quad to transform.
        Returns:
        The input BakedQuad object with the new position applied.
      • processMany

        public java.util.List<BakedQuad> processMany​(java.util.List<BakedQuad> inputs)
        Processes multiple quads, producing a new array of new quads.
        Parameters:
        inputs - The list of quads to transform
        Returns:
        A new array of new BakedQuad objects.
      • processManyInPlace

        public void processManyInPlace​(java.util.List<BakedQuad> inputs)
        Processes multiple quads in place, modifying the input quads.
        Parameters:
        inputs - The list of quads to transform