Class StructUtils

java.lang.Object
com.jme3.util.struct.StructUtils

public class StructUtils extends Object
StructUtils
  • Constructor Details

    • StructUtils

      public StructUtils()
  • Method Details

    • sortFields

      public static List<StructField<?>> sortFields(List<StructField<?>> fields)
      In-place sort a List of StructFields accordingly to their position
      Parameters:
      fields - list to sort
      Returns:
      the passed list
    • getFields

      public static List<StructField<?>> getFields(Struct struct)
      Get sorted List of StructFields from a Struct object
      Parameters:
      struct - the struct object
      Returns:
      the sorted list
    • getFields

      public static List<StructField<?>> getFields(Struct struct, ArrayList<Field> classFields)
    • setStd140BufferLayout

      public static BufferObject setStd140BufferLayout(List<StructField<?>> fields, Std140Layout serializer, BufferObject out)
    • updateBufferData

      public static void updateBufferData(List<StructField<?>> fields, boolean forceUpdate, BufferLayout layout, BufferObject out)
      Update data using a List of StructFields The current layout will be maintained unless previously invalidated
      Parameters:
      fields - sorted list of struct fields