7#include <meshoptimizer.h>
11 meshopt_encodeIndexVersion(version);
16 meshopt_encodeVertexVersion(version);
21 return meshopt_encodeIndexBufferBound(index_count, vertex_count);
26 const unsigned int *indices,
29 return meshopt_encodeIndexBuffer(buffer, buffer_size, indices, index_count);
34 return meshopt_encodeVertexBufferBound(vertex_count, vertex_size);
43 return meshopt_encodeVertexBuffer(buffer, buffer_size, vertices, vertex_count, vertex_size);
48 return meshopt_encodeIndexSequenceBound(index_count, vertex_count);
53 const unsigned int *indices,
56 return meshopt_encodeIndexSequence(buffer, buffer_size, indices, index_count);
59void encodeFilterOct(
void *destination,
size_t count,
size_t stride,
int bits,
const float *data)
61 meshopt_encodeFilterOct(destination, count, stride, bits, data);
64void encodeFilterQuat(
void *destination,
size_t count,
size_t stride,
int bits,
const float *data)
66 meshopt_encodeFilterQuat(destination, count, stride, bits, data);
76 meshopt_encodeFilterExp(
77 destination, count, stride, bits, data, (
enum meshopt_EncodeExpMode)mode);
size_t encodeIndexSequenceBound(size_t index_count, size_t vertex_count)
void encodeVertexVersion(int version)
void encodeFilterOct(void *destination, size_t count, size_t stride, int bits, const float *data)
void encodeFilterQuat(void *destination, size_t count, size_t stride, int bits, const float *data)
size_t encodeIndexBufferBound(size_t index_count, size_t vertex_count)
void encodeIndexVersion(int version)
void encodeFilterExp(void *destination, size_t count, size_t stride, int bits, const float *data, enum encodeExpMode mode)
size_t encodeVertexBufferBound(size_t vertex_count, size_t vertex_size)
size_t encodeIndexSequence(unsigned char *buffer, size_t buffer_size, const unsigned int *indices, size_t index_count)
size_t encodeIndexBuffer(unsigned char *buffer, size_t buffer_size, const unsigned int *indices, size_t index_count)
size_t encodeVertexBuffer(unsigned char *buffer, size_t buffer_size, const void *vertices, size_t vertex_count, size_t vertex_size)