public final class SMFByteBufferTrianglePacker extends Object implements SMFParserEventsDataTrianglesType
ByteBuffer.| Constructor and Description |
|---|
SMFByteBufferTrianglePacker(SMFParserEventsErrorType in_events,
ByteBuffer in_triangle_buffer,
int in_size,
long in_triangles)
Construct a packer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDataTriangle(long v0,
long v1,
long v2)
A triangle has been parsed.
|
void |
onDataTrianglesFinish()
Parsing of triangles has completed.
|
void |
onError(SMFErrorType e)
An error has occurred.
|
void |
onWarning(SMFWarningType w)
An error has occurred of a severity low enough that it should just be
considered a warning.
|
public SMFByteBufferTrianglePacker(SMFParserEventsErrorType in_events, ByteBuffer in_triangle_buffer, int in_size, long in_triangles)
in_events - A receiver of errors and warningsin_triangle_buffer - The byte buffer that will contain triangle datain_size - The size in bits of a single triangle indexin_triangles - The number of triangles that will be packedpublic void onDataTriangle(long v0,
long v1,
long v2)
SMFParserEventsDataTrianglesTypeonDataTriangle in interface SMFParserEventsDataTrianglesTypev0 - The index of the first vertexv1 - The index of the second vertexv2 - The index of the third vertexpublic void onDataTrianglesFinish()
SMFParserEventsDataTrianglesTypeonDataTrianglesFinish in interface SMFParserEventsDataTrianglesTypepublic void onError(SMFErrorType e)
SMFParserEventsErrorTypeonError in interface SMFParserEventsErrorTypee - The errorpublic void onWarning(SMFWarningType w)
SMFParserEventsErrorTypeonWarning in interface SMFParserEventsErrorTypew - The warningCopyright © 2017 <code@io7m.com> http://io7m.com