Package com.jme3.util.struct
Class StructUtils
java.lang.Object
com.jme3.util.struct.StructUtils
StructUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic List<StructField<?>>Get sorted List of StructFields from a Struct objectstatic List<StructField<?>>static BufferObjectsetStd140BufferLayout(List<StructField<?>> fields, Std140Layout serializer, BufferObject out) static List<StructField<?>>sortFields(List<StructField<?>> fields) In-place sort a List of StructFields accordingly to their positionstatic voidupdateBufferData(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 
- 
Constructor Details
- 
StructUtils
public StructUtils() 
 - 
 - 
Method Details
- 
sortFields
In-place sort a List of StructFields accordingly to their position- Parameters:
 fields- list to sort- Returns:
 - the passed list
 
 - 
getFields
Get sorted List of StructFields from a Struct object- Parameters:
 struct- the struct object- Returns:
 - the sorted list
 
 - 
getFields
 - 
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
 
 -