public interface SMFByteBufferPackerEventsType
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
onAllocateAttributeBuffer(Integer id,
SMFByteBufferPackingConfiguration config,
long size)
A function that will allocate a
ByteBuffer to hold attribute
data. |
ByteBuffer |
onAllocateTriangleBuffer(SMFTriangles triangles,
long size)
A function that will allocate a
ByteBuffer to hold triangle
data. |
javaslang.control.Validation<javaslang.collection.List<SMFErrorType>,javaslang.collection.SortedMap<Integer,SMFByteBufferPackingConfiguration>> |
onHeader(SMFHeader header)
A function that is evaluated for a parsed header.
|
boolean |
onShouldPackTriangles() |
javaslang.control.Validation<javaslang.collection.List<SMFErrorType>,javaslang.collection.SortedMap<Integer,SMFByteBufferPackingConfiguration>> onHeader(SMFHeader header)
SMFByteBufferPackingConfiguration for each
ByteBuffer that should be created to hold attribute data.header - The parsed headerboolean onShouldPackTriangles()
true iff triangles should be packedByteBuffer onAllocateTriangleBuffer(SMFTriangles triangles, long size)
ByteBuffer to hold triangle
data.triangles - Information about the trianglessize - The required size in octets of the allocated buffersize octetsByteBuffer onAllocateAttributeBuffer(Integer id, SMFByteBufferPackingConfiguration config, long size)
ByteBuffer to hold attribute
data.id - The configuration keyconfig - The packing configurationsize - The required size in octets of the allocated buffersize octetsCopyright © 2017 <code@io7m.com> http://io7m.com