public interface SMFSerializerType extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
serializeHeader(SMFHeader header)
Serialize the header data.
|
void |
serializeMetadata(SMFSchemaIdentifier schema,
byte[] data)
Serialize one item of metadata.
|
SMFSerializerDataTrianglesType |
serializeTrianglesStart()
Start serializing triangles.
|
SMFSerializerDataAttributesNonInterleavedType |
serializeVertexDataNonInterleavedStart()
Start serializing non-interleaved vertex data.
|
void serializeHeader(SMFHeader header) throws IllegalStateException, IOException
Serialize the header data.
header - The headerIOException - On I/O errorsIllegalStateException - If the header has already been serializedSMFSerializerDataAttributesNonInterleavedType serializeVertexDataNonInterleavedStart() throws IllegalStateException, IOException
Start serializing non-interleaved vertex data.
If the method raises an exception, the serializer is considered to have
failed and all subsequent method calls will raise IllegalArgumentException.
IllegalStateException - If the header has not yet been serializedIOException - On I/O errorsSMFSerializerDataTrianglesType serializeTrianglesStart() throws IllegalStateException, IOException
Start serializing triangles.
IllegalStateException - If the header has not yet been serializedIOException - On I/O errorsvoid serializeMetadata(SMFSchemaIdentifier schema, byte[] data) throws IllegalStateException, IOException
Serialize one item of metadata.
schema - The schema IDdata - The dataIllegalStateException - If the header has not yet been serializedIOException - On I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com