Package org.lwjgl.util.meshoptimizer
Class MeshOptimizer
java.lang.Object
org.lwjgl.util.meshoptimizer.MeshOptimizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic MeshoptOverdrawStatistics
meshopt_analyzeOverdraw
(IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptOverdrawStatistics __result) struct meshopt_OverdrawStatistics meshopt_analyzeOverdraw(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static MeshoptVertexCacheStatistics
meshopt_analyzeVertexCache
(IntBuffer indices, long vertex_count, int cache_size, int warp_size, int primgroup_size, MeshoptVertexCacheStatistics __result) struct meshopt_VertexCacheStatistics meshopt_analyzeVertexCache(unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size, unsigned int warp_size, unsigned int primgroup_size)
static MeshoptVertexFetchStatistics
meshopt_analyzeVertexFetch
(IntBuffer indices, long vertex_count, long vertex_size, MeshoptVertexFetchStatistics __result) struct meshopt_VertexFetchStatistics meshopt_analyzeVertexFetch(unsigned int const * indices, size_t index_count, size_t vertex_count, size_t vertex_size)
static long
meshopt_buildMeshlets
(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long max_triangles, float cone_weight) size_t meshopt_buildMeshlets(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t max_triangles, float cone_weight)
static long
meshopt_buildMeshletsBound
(long index_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsBound(size_t index_count, size_t max_vertices, size_t max_triangles)
static long
meshopt_buildMeshletsFlex
(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long min_triangles, long max_triangles, float cone_weight, float split_factor) size_t meshopt_buildMeshletsFlex(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t min_triangles, size_t max_triangles, float cone_weight, float split_factor)
static long
meshopt_buildMeshletsScan
(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, long vertex_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsScan(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, size_t vertex_count, size_t max_vertices, size_t max_triangles)
static MeshoptBounds
meshopt_computeClusterBounds
(IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeClusterBounds(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static MeshoptBounds
meshopt_computeMeshletBounds
(IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeMeshletBounds(unsigned int const * meshlet_vertices, unsigned char const * meshlet_triangles, size_t triangle_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static MeshoptBounds
meshopt_computeSphereBounds
(FloatBuffer positions, long count, long positions_stride, @Nullable FloatBuffer radii, long radii_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeSphereBounds(float const * positions, size_t count, size_t positions_stride, float const * radii, size_t radii_stride)
static void
meshopt_decodeFilterExp
(ByteBuffer buffer, long count, long stride) void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
static void
meshopt_decodeFilterExp
(IntBuffer buffer, long count, long stride) void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
static void
meshopt_decodeFilterOct
(ByteBuffer buffer, long count, long stride) void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
static void
meshopt_decodeFilterOct
(ShortBuffer buffer, long count, long stride) void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
static void
meshopt_decodeFilterQuat
(ByteBuffer buffer, long count, long stride) void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
static void
meshopt_decodeFilterQuat
(ShortBuffer buffer, long count, long stride) void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
static int
meshopt_decodeIndexBuffer
(ByteBuffer destination, long index_count, long index_size, ByteBuffer buffer) int meshopt_decodeIndexBuffer(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
static int
meshopt_decodeIndexSequence
(ByteBuffer destination, long index_count, long index_size, ByteBuffer buffer) int meshopt_decodeIndexSequence(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
static int
meshopt_decodeIndexVersion
(ByteBuffer buffer) int meshopt_decodeIndexVersion(unsigned char const * buffer, size_t buffer_size)
static int
meshopt_decodeVertexBuffer
(ByteBuffer destination, long vertex_count, long vertex_size, ByteBuffer buffer) int meshopt_decodeVertexBuffer(void * destination, size_t vertex_count, size_t vertex_size, unsigned char const * buffer, size_t buffer_size)
static int
int meshopt_decodeVertexVersion(unsigned char const * buffer, size_t buffer_size)
static float
meshopt_dequantizeHalf
(short h) Reverse quantization of a half-precision (as defined by IEEE-754 fp16) floating point value.static void
meshopt_encodeFilterExp
(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
static void
meshopt_encodeFilterExp
(IntBuffer destination, long count, long stride, int bits, FloatBuffer data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
static void
meshopt_encodeFilterOct
(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
static void
meshopt_encodeFilterOct
(ShortBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
static void
meshopt_encodeFilterQuat
(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
static void
meshopt_encodeFilterQuat
(ShortBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
static long
meshopt_encodeIndexBuffer
(ByteBuffer buffer, IntBuffer indices) size_t meshopt_encodeIndexBuffer(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
static long
meshopt_encodeIndexBufferBound
(long index_count, long vertex_count) size_t meshopt_encodeIndexBufferBound(size_t index_count, size_t vertex_count)
static long
meshopt_encodeIndexSequence
(ByteBuffer buffer, IntBuffer indices) size_t meshopt_encodeIndexSequence(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
static long
meshopt_encodeIndexSequenceBound
(long index_count, long vertex_count) size_t meshopt_encodeIndexSequenceBound(size_t index_count, size_t vertex_count)
static void
meshopt_encodeIndexVersion
(int version) void meshopt_encodeIndexVersion(int version)
static long
meshopt_encodeVertexBuffer
(ByteBuffer buffer, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_encodeVertexBuffer(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
meshopt_encodeVertexBufferBound
(long vertex_count, long vertex_size) size_t meshopt_encodeVertexBufferBound(size_t vertex_count, size_t vertex_size)
static long
meshopt_encodeVertexBufferLevel
(ByteBuffer buffer, ByteBuffer vertices, long vertex_count, long vertex_size, int level) size_t meshopt_encodeVertexBufferLevel(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size, int level)
static void
meshopt_encodeVertexVersion
(int version) void meshopt_encodeVertexVersion(int version)
static void
meshopt_generateAdjacencyIndexBuffer
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateAdjacencyIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
meshopt_generateProvokingIndexBuffer
(IntBuffer destination, IntBuffer reorder, IntBuffer indices, long index_count, long vertex_count) size_t meshopt_generateProvokingIndexBuffer(unsigned int * destination, unsigned int * reorder, unsigned int const * indices, size_t index_count, size_t vertex_count)
static void
meshopt_generateShadowIndexBuffer
(IntBuffer destination, IntBuffer indices, ByteBuffer vertices, long vertex_count, long vertex_size, long vertex_stride) void meshopt_generateShadowIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size, size_t vertex_stride)
static void
meshopt_generateShadowIndexBufferMulti
(IntBuffer destination, IntBuffer indices, long vertex_count, MeshoptStream.Buffer streams) void meshopt_generateShadowIndexBufferMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
static void
meshopt_generateTessellationIndexBuffer
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateTessellationIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
meshopt_generateVertexRemap
(IntBuffer destination, @Nullable IntBuffer indices, long index_count, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_generateVertexRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
meshopt_generateVertexRemapMulti
(IntBuffer destination, @Nullable IntBuffer indices, long vertex_count, MeshoptStream.Buffer streams) size_t meshopt_generateVertexRemapMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
static void
meshopt_optimizeMeshlet
(IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles) void meshopt_optimizeMeshlet(unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, size_t triangle_count, size_t vertex_count)
static void
meshopt_optimizeOverdraw
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, float threshold) void meshopt_optimizeOverdraw(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float threshold)
static void
meshopt_optimizeVertexCache
(IntBuffer destination, IntBuffer indices, long vertex_count) void meshopt_optimizeVertexCache(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static void
meshopt_optimizeVertexCacheFifo
(IntBuffer destination, IntBuffer indices, long vertex_count, int cache_size) void meshopt_optimizeVertexCacheFifo(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size)
static void
meshopt_optimizeVertexCacheStrip
(IntBuffer destination, IntBuffer indices, long vertex_count) void meshopt_optimizeVertexCacheStrip(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static long
meshopt_optimizeVertexFetch
(ByteBuffer destination, IntBuffer indices, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_optimizeVertexFetch(void * destination, unsigned int * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
meshopt_optimizeVertexFetchRemap
(IntBuffer destination, IntBuffer indices) size_t meshopt_optimizeVertexFetchRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static long
meshopt_partitionClusters
(IntBuffer destination, IntBuffer cluster_indices, IntBuffer cluster_index_counts, long vertex_count, long target_partition_size) size_t meshopt_partitionClusters(unsigned int * destination, unsigned int const * cluster_indices, size_t total_index_count, unsigned int const * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size)
static float
meshopt_quantizeFloat
(float v, int N) Quantizes a float into a floating point value with a limited number of significant mantissa bits, preserving the IEEE-754 fp32 binary representation.static short
meshopt_quantizeHalf
(float v) Quantizes a float into half-precision (as defined by IEEE-754 fp16) floating point value.static int
meshopt_quantizeSnorm
(float v, int N) Quantizes a float in[-1..1]
range into an N-bit fixed pointsnorm
value.static int
meshopt_quantizeUnorm
(float v, int N) Quantizes a float in[0..1]
range into an N-bit fixed pointunorm
value.static void
meshopt_remapIndexBuffer
(IntBuffer destination, @Nullable IntBuffer indices, long index_count, IntBuffer remap) void meshopt_remapIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int const * remap)
static void
meshopt_remapVertexBuffer
(ByteBuffer destination, ByteBuffer vertices, long vertex_count, long vertex_size, IntBuffer remap) void meshopt_remapVertexBuffer(void * destination, void const * vertices, size_t vertex_count, size_t vertex_size, unsigned int const * remap)
static void
meshopt_setAllocator
(MeshoptAllocateI allocate, MeshoptDeallocateI deallocate) void meshopt_setAllocator(void * (*) (size_t) allocate, void (*) (void *) deallocate)
static long
meshopt_simplify
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, int options, @Nullable FloatBuffer result_error) size_t meshopt_simplify(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, unsigned int options, float * result_error)
static long
meshopt_simplifyPoints
(IntBuffer destination, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, @Nullable FloatBuffer vertex_colors, long vertex_colors_stride, float color_weight, long target_vertex_count) size_t meshopt_simplifyPoints(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count)
static float
meshopt_simplifyScale
(FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) float meshopt_simplifyScale(float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
meshopt_simplifySloppy
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, @Nullable FloatBuffer result_error) size_t meshopt_simplifySloppy(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float * result_error)
static long
meshopt_simplifyWithAttributes
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, FloatBuffer vertex_attributes, long vertex_attributes_stride, FloatBuffer attribute_weights, @Nullable ByteBuffer vertex_lock, long target_index_count, float target_error, int options, @Nullable FloatBuffer result_error) size_t meshopt_simplifyWithAttributes(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_attributes, size_t vertex_attributes_stride, float const * attribute_weights, size_t attribute_count, unsigned char const * vertex_lock, size_t target_index_count, float target_error, unsigned int options, float * result_error)
static void
meshopt_spatialSortRemap
(IntBuffer destination, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortRemap(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static void
meshopt_spatialSortTriangles
(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortTriangles(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
meshopt_stripify
(IntBuffer destination, IntBuffer indices, long vertex_count, int restart_index) size_t meshopt_stripify(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int restart_index)
static long
meshopt_stripifyBound
(long index_count) size_t meshopt_stripifyBound(size_t index_count)
static long
meshopt_unstripify
(IntBuffer destination, IntBuffer indices, int restart_index) size_t meshopt_unstripify(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int restart_index)
static long
meshopt_unstripifyBound
(long index_count) size_t meshopt_unstripifyBound(size_t index_count)
static void
nmeshopt_analyzeOverdraw
(long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_OverdrawStatistics meshopt_analyzeOverdraw(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static void
nmeshopt_analyzeVertexCache
(long indices, long index_count, long vertex_count, int cache_size, int warp_size, int primgroup_size, long __result) struct meshopt_VertexCacheStatistics meshopt_analyzeVertexCache(unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size, unsigned int warp_size, unsigned int primgroup_size)
static void
nmeshopt_analyzeVertexFetch
(long indices, long index_count, long vertex_count, long vertex_size, long __result) struct meshopt_VertexFetchStatistics meshopt_analyzeVertexFetch(unsigned int const * indices, size_t index_count, size_t vertex_count, size_t vertex_size)
static long
nmeshopt_buildMeshlets
(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long max_triangles, float cone_weight) size_t meshopt_buildMeshlets(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t max_triangles, float cone_weight)
static long
nmeshopt_buildMeshletsFlex
(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long min_triangles, long max_triangles, float cone_weight, float split_factor) size_t meshopt_buildMeshletsFlex(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t min_triangles, size_t max_triangles, float cone_weight, float split_factor)
static long
nmeshopt_buildMeshletsScan
(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsScan(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, size_t vertex_count, size_t max_vertices, size_t max_triangles)
static void
nmeshopt_computeClusterBounds
(long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_Bounds meshopt_computeClusterBounds(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static void
nmeshopt_computeMeshletBounds
(long meshlet_vertices, long meshlet_triangles, long triangle_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_Bounds meshopt_computeMeshletBounds(unsigned int const * meshlet_vertices, unsigned char const * meshlet_triangles, size_t triangle_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static void
nmeshopt_computeSphereBounds
(long positions, long count, long positions_stride, long radii, long radii_stride, long __result) struct meshopt_Bounds meshopt_computeSphereBounds(float const * positions, size_t count, size_t positions_stride, float const * radii, size_t radii_stride)
static void
nmeshopt_decodeFilterExp
(long buffer, long count, long stride) void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
static void
nmeshopt_decodeFilterOct
(long buffer, long count, long stride) void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
static void
nmeshopt_decodeFilterQuat
(long buffer, long count, long stride) void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
static int
nmeshopt_decodeIndexBuffer
(long destination, long index_count, long index_size, long buffer, long buffer_size) int meshopt_decodeIndexBuffer(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
static int
nmeshopt_decodeIndexSequence
(long destination, long index_count, long index_size, long buffer, long buffer_size) int meshopt_decodeIndexSequence(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
static int
nmeshopt_decodeIndexVersion
(long buffer, long buffer_size) int meshopt_decodeIndexVersion(unsigned char const * buffer, size_t buffer_size)
static int
nmeshopt_decodeVertexBuffer
(long destination, long vertex_count, long vertex_size, long buffer, long buffer_size) int meshopt_decodeVertexBuffer(void * destination, size_t vertex_count, size_t vertex_size, unsigned char const * buffer, size_t buffer_size)
static int
nmeshopt_decodeVertexVersion
(long buffer, long buffer_size) int meshopt_decodeVertexVersion(unsigned char const * buffer, size_t buffer_size)
static void
nmeshopt_encodeFilterExp
(long destination, long count, long stride, int bits, long data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
static void
nmeshopt_encodeFilterOct
(long destination, long count, long stride, int bits, long data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
static void
nmeshopt_encodeFilterQuat
(long destination, long count, long stride, int bits, long data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
static long
nmeshopt_encodeIndexBuffer
(long buffer, long buffer_size, long indices, long index_count) size_t meshopt_encodeIndexBuffer(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
static long
nmeshopt_encodeIndexSequence
(long buffer, long buffer_size, long indices, long index_count) size_t meshopt_encodeIndexSequence(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
static long
nmeshopt_encodeVertexBuffer
(long buffer, long buffer_size, long vertices, long vertex_count, long vertex_size) size_t meshopt_encodeVertexBuffer(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
nmeshopt_encodeVertexBufferLevel
(long buffer, long buffer_size, long vertices, long vertex_count, long vertex_size, int level) size_t meshopt_encodeVertexBufferLevel(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size, int level)
static void
nmeshopt_generateAdjacencyIndexBuffer
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateAdjacencyIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
nmeshopt_generateProvokingIndexBuffer
(long destination, long reorder, long indices, long index_count, long vertex_count) size_t meshopt_generateProvokingIndexBuffer(unsigned int * destination, unsigned int * reorder, unsigned int const * indices, size_t index_count, size_t vertex_count)
static void
nmeshopt_generateShadowIndexBuffer
(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size, long vertex_stride) void meshopt_generateShadowIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size, size_t vertex_stride)
static void
nmeshopt_generateShadowIndexBufferMulti
(long destination, long indices, long index_count, long vertex_count, long streams, long stream_count) void meshopt_generateShadowIndexBufferMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
static void
nmeshopt_generateTessellationIndexBuffer
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateTessellationIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
nmeshopt_generateVertexRemap
(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size) size_t meshopt_generateVertexRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
nmeshopt_generateVertexRemapMulti
(long destination, long indices, long index_count, long vertex_count, long streams, long stream_count) size_t meshopt_generateVertexRemapMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
static void
nmeshopt_optimizeMeshlet
(long meshlet_vertices, long meshlet_triangles, long triangle_count, long vertex_count) void meshopt_optimizeMeshlet(unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, size_t triangle_count, size_t vertex_count)
static void
nmeshopt_optimizeOverdraw
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, float threshold) void meshopt_optimizeOverdraw(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float threshold)
static void
nmeshopt_optimizeVertexCache
(long destination, long indices, long index_count, long vertex_count) void meshopt_optimizeVertexCache(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static void
nmeshopt_optimizeVertexCacheFifo
(long destination, long indices, long index_count, long vertex_count, int cache_size) void meshopt_optimizeVertexCacheFifo(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size)
static void
nmeshopt_optimizeVertexCacheStrip
(long destination, long indices, long index_count, long vertex_count) void meshopt_optimizeVertexCacheStrip(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static long
nmeshopt_optimizeVertexFetch
(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size) size_t meshopt_optimizeVertexFetch(void * destination, unsigned int * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
static long
nmeshopt_optimizeVertexFetchRemap
(long destination, long indices, long index_count, long vertex_count) size_t meshopt_optimizeVertexFetchRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
static long
nmeshopt_partitionClusters
(long destination, long cluster_indices, long total_index_count, long cluster_index_counts, long cluster_count, long vertex_count, long target_partition_size) size_t meshopt_partitionClusters(unsigned int * destination, unsigned int const * cluster_indices, size_t total_index_count, unsigned int const * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size)
static void
nmeshopt_remapIndexBuffer
(long destination, long indices, long index_count, long remap) void meshopt_remapIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int const * remap)
static void
nmeshopt_remapVertexBuffer
(long destination, long vertices, long vertex_count, long vertex_size, long remap) void meshopt_remapVertexBuffer(void * destination, void const * vertices, size_t vertex_count, size_t vertex_size, unsigned int const * remap)
static void
nmeshopt_setAllocator
(long allocate, long deallocate) void meshopt_setAllocator(void * (*) (size_t) allocate, void (*) (void *) deallocate)
static long
nmeshopt_simplify
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, int options, long result_error) size_t meshopt_simplify(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, unsigned int options, float * result_error)
static long
nmeshopt_simplifyPoints
(long destination, long vertex_positions, long vertex_count, long vertex_positions_stride, long vertex_colors, long vertex_colors_stride, float color_weight, long target_vertex_count) size_t meshopt_simplifyPoints(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count)
static float
nmeshopt_simplifyScale
(long vertex_positions, long vertex_count, long vertex_positions_stride) float meshopt_simplifyScale(float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
nmeshopt_simplifySloppy
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, long result_error) size_t meshopt_simplifySloppy(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float * result_error)
static long
nmeshopt_simplifyWithAttributes
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long vertex_attributes, long vertex_attributes_stride, long attribute_weights, long attribute_count, long vertex_lock, long target_index_count, float target_error, int options, long result_error) size_t meshopt_simplifyWithAttributes(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_attributes, size_t vertex_attributes_stride, float const * attribute_weights, size_t attribute_count, unsigned char const * vertex_lock, size_t target_index_count, float target_error, unsigned int options, float * result_error)
static void
nmeshopt_spatialSortRemap
(long destination, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortRemap(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static void
nmeshopt_spatialSortTriangles
(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortTriangles(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
static long
nmeshopt_stripify
(long destination, long indices, long index_count, long vertex_count, int restart_index) size_t meshopt_stripify(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int restart_index)
static long
nmeshopt_unstripify
(long destination, long indices, long index_count, int restart_index) size_t meshopt_unstripify(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int restart_index)
-
Field Details
-
MESHOPTIMIZER_VERSION
public static final int MESHOPTIMIZER_VERSION- See Also:
-
meshopt_EncodeExpSeparate
public static final int meshopt_EncodeExpSeparate- See Also:
-
meshopt_EncodeExpClamped
public static final int meshopt_EncodeExpClamped- See Also:
-
meshopt_SimplifyLockBorder
public static final int meshopt_SimplifyLockBorder- See Also:
-
meshopt_SimplifySparse
public static final int meshopt_SimplifySparse- See Also:
-
meshopt_SimplifyErrorAbsolute
public static final int meshopt_SimplifyErrorAbsolute- See Also:
-
meshopt_SimplifyPrune
public static final int meshopt_SimplifyPrune- See Also:
-
-
Method Details
-
nmeshopt_generateVertexRemap
public static long nmeshopt_generateVertexRemap(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size) size_t meshopt_generateVertexRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
-
meshopt_generateVertexRemap
public static long meshopt_generateVertexRemap(IntBuffer destination, @Nullable IntBuffer indices, long index_count, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_generateVertexRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
-
nmeshopt_generateVertexRemapMulti
public static long nmeshopt_generateVertexRemapMulti(long destination, long indices, long index_count, long vertex_count, long streams, long stream_count) size_t meshopt_generateVertexRemapMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
-
meshopt_generateVertexRemapMulti
public static long meshopt_generateVertexRemapMulti(IntBuffer destination, @Nullable IntBuffer indices, long vertex_count, MeshoptStream.Buffer streams) size_t meshopt_generateVertexRemapMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
-
nmeshopt_remapVertexBuffer
public static void nmeshopt_remapVertexBuffer(long destination, long vertices, long vertex_count, long vertex_size, long remap) void meshopt_remapVertexBuffer(void * destination, void const * vertices, size_t vertex_count, size_t vertex_size, unsigned int const * remap)
-
meshopt_remapVertexBuffer
public static void meshopt_remapVertexBuffer(ByteBuffer destination, ByteBuffer vertices, long vertex_count, long vertex_size, IntBuffer remap) void meshopt_remapVertexBuffer(void * destination, void const * vertices, size_t vertex_count, size_t vertex_size, unsigned int const * remap)
-
nmeshopt_remapIndexBuffer
public static void nmeshopt_remapIndexBuffer(long destination, long indices, long index_count, long remap) void meshopt_remapIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int const * remap)
-
meshopt_remapIndexBuffer
public static void meshopt_remapIndexBuffer(IntBuffer destination, @Nullable IntBuffer indices, long index_count, IntBuffer remap) void meshopt_remapIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int const * remap)
-
nmeshopt_generateShadowIndexBuffer
public static void nmeshopt_generateShadowIndexBuffer(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size, long vertex_stride) void meshopt_generateShadowIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size, size_t vertex_stride)
-
meshopt_generateShadowIndexBuffer
public static void meshopt_generateShadowIndexBuffer(IntBuffer destination, IntBuffer indices, ByteBuffer vertices, long vertex_count, long vertex_size, long vertex_stride) void meshopt_generateShadowIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size, size_t vertex_stride)
-
nmeshopt_generateShadowIndexBufferMulti
public static void nmeshopt_generateShadowIndexBufferMulti(long destination, long indices, long index_count, long vertex_count, long streams, long stream_count) void meshopt_generateShadowIndexBufferMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
-
meshopt_generateShadowIndexBufferMulti
public static void meshopt_generateShadowIndexBufferMulti(IntBuffer destination, IntBuffer indices, long vertex_count, MeshoptStream.Buffer streams) void meshopt_generateShadowIndexBufferMulti(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, struct meshopt_Stream const * streams, size_t stream_count)
-
nmeshopt_generateAdjacencyIndexBuffer
public static void nmeshopt_generateAdjacencyIndexBuffer(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateAdjacencyIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_generateAdjacencyIndexBuffer
public static void meshopt_generateAdjacencyIndexBuffer(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateAdjacencyIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_generateTessellationIndexBuffer
public static void nmeshopt_generateTessellationIndexBuffer(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateTessellationIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_generateTessellationIndexBuffer
public static void meshopt_generateTessellationIndexBuffer(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_generateTessellationIndexBuffer(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_generateProvokingIndexBuffer
public static long nmeshopt_generateProvokingIndexBuffer(long destination, long reorder, long indices, long index_count, long vertex_count) size_t meshopt_generateProvokingIndexBuffer(unsigned int * destination, unsigned int * reorder, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
meshopt_generateProvokingIndexBuffer
public static long meshopt_generateProvokingIndexBuffer(IntBuffer destination, IntBuffer reorder, IntBuffer indices, long index_count, long vertex_count) size_t meshopt_generateProvokingIndexBuffer(unsigned int * destination, unsigned int * reorder, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
nmeshopt_optimizeVertexCache
public static void nmeshopt_optimizeVertexCache(long destination, long indices, long index_count, long vertex_count) void meshopt_optimizeVertexCache(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
meshopt_optimizeVertexCache
public static void meshopt_optimizeVertexCache(IntBuffer destination, IntBuffer indices, long vertex_count) void meshopt_optimizeVertexCache(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
nmeshopt_optimizeVertexCacheStrip
public static void nmeshopt_optimizeVertexCacheStrip(long destination, long indices, long index_count, long vertex_count) void meshopt_optimizeVertexCacheStrip(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
meshopt_optimizeVertexCacheStrip
public static void meshopt_optimizeVertexCacheStrip(IntBuffer destination, IntBuffer indices, long vertex_count) void meshopt_optimizeVertexCacheStrip(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
nmeshopt_optimizeVertexCacheFifo
public static void nmeshopt_optimizeVertexCacheFifo(long destination, long indices, long index_count, long vertex_count, int cache_size) void meshopt_optimizeVertexCacheFifo(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size)
-
meshopt_optimizeVertexCacheFifo
public static void meshopt_optimizeVertexCacheFifo(IntBuffer destination, IntBuffer indices, long vertex_count, int cache_size) void meshopt_optimizeVertexCacheFifo(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size)
-
nmeshopt_optimizeOverdraw
public static void nmeshopt_optimizeOverdraw(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, float threshold) void meshopt_optimizeOverdraw(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float threshold)
-
meshopt_optimizeOverdraw
public static void meshopt_optimizeOverdraw(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, float threshold) void meshopt_optimizeOverdraw(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float threshold)
-
nmeshopt_optimizeVertexFetch
public static long nmeshopt_optimizeVertexFetch(long destination, long indices, long index_count, long vertices, long vertex_count, long vertex_size) size_t meshopt_optimizeVertexFetch(void * destination, unsigned int * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
-
meshopt_optimizeVertexFetch
public static long meshopt_optimizeVertexFetch(ByteBuffer destination, IntBuffer indices, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_optimizeVertexFetch(void * destination, unsigned int * indices, size_t index_count, void const * vertices, size_t vertex_count, size_t vertex_size)
-
nmeshopt_optimizeVertexFetchRemap
public static long nmeshopt_optimizeVertexFetchRemap(long destination, long indices, long index_count, long vertex_count) size_t meshopt_optimizeVertexFetchRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
meshopt_optimizeVertexFetchRemap
size_t meshopt_optimizeVertexFetchRemap(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count)
-
nmeshopt_encodeIndexBuffer
public static long nmeshopt_encodeIndexBuffer(long buffer, long buffer_size, long indices, long index_count) size_t meshopt_encodeIndexBuffer(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
-
meshopt_encodeIndexBuffer
size_t meshopt_encodeIndexBuffer(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
-
meshopt_encodeIndexBufferBound
public static long meshopt_encodeIndexBufferBound(long index_count, long vertex_count) size_t meshopt_encodeIndexBufferBound(size_t index_count, size_t vertex_count)
-
meshopt_encodeIndexVersion
public static void meshopt_encodeIndexVersion(int version) void meshopt_encodeIndexVersion(int version)
-
nmeshopt_decodeIndexBuffer
public static int nmeshopt_decodeIndexBuffer(long destination, long index_count, long index_size, long buffer, long buffer_size) int meshopt_decodeIndexBuffer(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
-
meshopt_decodeIndexBuffer
public static int meshopt_decodeIndexBuffer(ByteBuffer destination, long index_count, long index_size, ByteBuffer buffer) int meshopt_decodeIndexBuffer(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
-
nmeshopt_decodeIndexVersion
public static int nmeshopt_decodeIndexVersion(long buffer, long buffer_size) int meshopt_decodeIndexVersion(unsigned char const * buffer, size_t buffer_size)
-
meshopt_decodeIndexVersion
int meshopt_decodeIndexVersion(unsigned char const * buffer, size_t buffer_size)
-
nmeshopt_encodeIndexSequence
public static long nmeshopt_encodeIndexSequence(long buffer, long buffer_size, long indices, long index_count) size_t meshopt_encodeIndexSequence(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
-
meshopt_encodeIndexSequence
size_t meshopt_encodeIndexSequence(unsigned char * buffer, size_t buffer_size, unsigned int const * indices, size_t index_count)
-
meshopt_encodeIndexSequenceBound
public static long meshopt_encodeIndexSequenceBound(long index_count, long vertex_count) size_t meshopt_encodeIndexSequenceBound(size_t index_count, size_t vertex_count)
-
nmeshopt_decodeIndexSequence
public static int nmeshopt_decodeIndexSequence(long destination, long index_count, long index_size, long buffer, long buffer_size) int meshopt_decodeIndexSequence(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
-
meshopt_decodeIndexSequence
public static int meshopt_decodeIndexSequence(ByteBuffer destination, long index_count, long index_size, ByteBuffer buffer) int meshopt_decodeIndexSequence(void * destination, size_t index_count, size_t index_size, unsigned char const * buffer, size_t buffer_size)
-
nmeshopt_encodeVertexBuffer
public static long nmeshopt_encodeVertexBuffer(long buffer, long buffer_size, long vertices, long vertex_count, long vertex_size) size_t meshopt_encodeVertexBuffer(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size)
-
meshopt_encodeVertexBuffer
public static long meshopt_encodeVertexBuffer(ByteBuffer buffer, ByteBuffer vertices, long vertex_count, long vertex_size) size_t meshopt_encodeVertexBuffer(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size)
-
meshopt_encodeVertexBufferBound
public static long meshopt_encodeVertexBufferBound(long vertex_count, long vertex_size) size_t meshopt_encodeVertexBufferBound(size_t vertex_count, size_t vertex_size)
-
nmeshopt_encodeVertexBufferLevel
public static long nmeshopt_encodeVertexBufferLevel(long buffer, long buffer_size, long vertices, long vertex_count, long vertex_size, int level) size_t meshopt_encodeVertexBufferLevel(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size, int level)
-
meshopt_encodeVertexBufferLevel
public static long meshopt_encodeVertexBufferLevel(ByteBuffer buffer, ByteBuffer vertices, long vertex_count, long vertex_size, int level) size_t meshopt_encodeVertexBufferLevel(unsigned char * buffer, size_t buffer_size, void const * vertices, size_t vertex_count, size_t vertex_size, int level)
-
meshopt_encodeVertexVersion
public static void meshopt_encodeVertexVersion(int version) void meshopt_encodeVertexVersion(int version)
-
nmeshopt_decodeVertexBuffer
public static int nmeshopt_decodeVertexBuffer(long destination, long vertex_count, long vertex_size, long buffer, long buffer_size) int meshopt_decodeVertexBuffer(void * destination, size_t vertex_count, size_t vertex_size, unsigned char const * buffer, size_t buffer_size)
-
meshopt_decodeVertexBuffer
public static int meshopt_decodeVertexBuffer(ByteBuffer destination, long vertex_count, long vertex_size, ByteBuffer buffer) int meshopt_decodeVertexBuffer(void * destination, size_t vertex_count, size_t vertex_size, unsigned char const * buffer, size_t buffer_size)
-
nmeshopt_decodeVertexVersion
public static int nmeshopt_decodeVertexVersion(long buffer, long buffer_size) int meshopt_decodeVertexVersion(unsigned char const * buffer, size_t buffer_size)
-
meshopt_decodeVertexVersion
int meshopt_decodeVertexVersion(unsigned char const * buffer, size_t buffer_size)
-
nmeshopt_decodeFilterOct
public static void nmeshopt_decodeFilterOct(long buffer, long count, long stride) void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterOct
void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterOct
void meshopt_decodeFilterOct(void * buffer, size_t count, size_t stride)
-
nmeshopt_decodeFilterQuat
public static void nmeshopt_decodeFilterQuat(long buffer, long count, long stride) void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterQuat
void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterQuat
void meshopt_decodeFilterQuat(void * buffer, size_t count, size_t stride)
-
nmeshopt_decodeFilterExp
public static void nmeshopt_decodeFilterExp(long buffer, long count, long stride) void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterExp
void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
-
meshopt_decodeFilterExp
void meshopt_decodeFilterExp(void * buffer, size_t count, size_t stride)
-
nmeshopt_encodeFilterOct
public static void nmeshopt_encodeFilterOct(long destination, long count, long stride, int bits, long data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
-
meshopt_encodeFilterOct
public static void meshopt_encodeFilterOct(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
-
meshopt_encodeFilterOct
public static void meshopt_encodeFilterOct(ShortBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterOct(void * destination, size_t count, size_t stride, int bits, float const * data)
-
nmeshopt_encodeFilterQuat
public static void nmeshopt_encodeFilterQuat(long destination, long count, long stride, int bits, long data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
-
meshopt_encodeFilterQuat
public static void meshopt_encodeFilterQuat(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
-
meshopt_encodeFilterQuat
public static void meshopt_encodeFilterQuat(ShortBuffer destination, long count, long stride, int bits, FloatBuffer data) void meshopt_encodeFilterQuat(void * destination, size_t count, size_t stride, int bits, float const * data)
-
nmeshopt_encodeFilterExp
public static void nmeshopt_encodeFilterExp(long destination, long count, long stride, int bits, long data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
-
meshopt_encodeFilterExp
public static void meshopt_encodeFilterExp(ByteBuffer destination, long count, long stride, int bits, FloatBuffer data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
-
meshopt_encodeFilterExp
public static void meshopt_encodeFilterExp(IntBuffer destination, long count, long stride, int bits, FloatBuffer data, int mode) void meshopt_encodeFilterExp(void * destination, size_t count, size_t stride, int bits, float const * data, enum meshopt_EncodeExpMode mode)
-
nmeshopt_simplify
public static long nmeshopt_simplify(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, int options, long result_error) size_t meshopt_simplify(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, unsigned int options, float * result_error)
-
meshopt_simplify
public static long meshopt_simplify(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, int options, @Nullable FloatBuffer result_error) size_t meshopt_simplify(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, unsigned int options, float * result_error)
-
nmeshopt_simplifyWithAttributes
public static long nmeshopt_simplifyWithAttributes(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long vertex_attributes, long vertex_attributes_stride, long attribute_weights, long attribute_count, long vertex_lock, long target_index_count, float target_error, int options, long result_error) size_t meshopt_simplifyWithAttributes(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_attributes, size_t vertex_attributes_stride, float const * attribute_weights, size_t attribute_count, unsigned char const * vertex_lock, size_t target_index_count, float target_error, unsigned int options, float * result_error)
-
meshopt_simplifyWithAttributes
public static long meshopt_simplifyWithAttributes(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, FloatBuffer vertex_attributes, long vertex_attributes_stride, FloatBuffer attribute_weights, @Nullable ByteBuffer vertex_lock, long target_index_count, float target_error, int options, @Nullable FloatBuffer result_error) size_t meshopt_simplifyWithAttributes(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_attributes, size_t vertex_attributes_stride, float const * attribute_weights, size_t attribute_count, unsigned char const * vertex_lock, size_t target_index_count, float target_error, unsigned int options, float * result_error)
-
nmeshopt_simplifySloppy
public static long nmeshopt_simplifySloppy(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, long result_error) size_t meshopt_simplifySloppy(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float * result_error)
-
meshopt_simplifySloppy
public static long meshopt_simplifySloppy(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long target_index_count, float target_error, @Nullable FloatBuffer result_error) size_t meshopt_simplifySloppy(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float * result_error)
-
nmeshopt_simplifyPoints
public static long nmeshopt_simplifyPoints(long destination, long vertex_positions, long vertex_count, long vertex_positions_stride, long vertex_colors, long vertex_colors_stride, float color_weight, long target_vertex_count) size_t meshopt_simplifyPoints(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count)
-
meshopt_simplifyPoints
public static long meshopt_simplifyPoints(IntBuffer destination, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, @Nullable FloatBuffer vertex_colors, long vertex_colors_stride, float color_weight, long target_vertex_count) size_t meshopt_simplifyPoints(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float const * vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count)
-
nmeshopt_simplifyScale
public static float nmeshopt_simplifyScale(long vertex_positions, long vertex_count, long vertex_positions_stride) float meshopt_simplifyScale(float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_simplifyScale
public static float meshopt_simplifyScale(FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) float meshopt_simplifyScale(float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_stripify
public static long nmeshopt_stripify(long destination, long indices, long index_count, long vertex_count, int restart_index) size_t meshopt_stripify(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int restart_index)
-
meshopt_stripify
public static long meshopt_stripify(IntBuffer destination, IntBuffer indices, long vertex_count, int restart_index) size_t meshopt_stripify(unsigned int * destination, unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int restart_index)
-
meshopt_stripifyBound
public static long meshopt_stripifyBound(long index_count) size_t meshopt_stripifyBound(size_t index_count)
-
nmeshopt_unstripify
public static long nmeshopt_unstripify(long destination, long indices, long index_count, int restart_index) size_t meshopt_unstripify(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int restart_index)
-
meshopt_unstripify
size_t meshopt_unstripify(unsigned int * destination, unsigned int const * indices, size_t index_count, unsigned int restart_index)
-
meshopt_unstripifyBound
public static long meshopt_unstripifyBound(long index_count) size_t meshopt_unstripifyBound(size_t index_count)
-
nmeshopt_analyzeVertexCache
public static void nmeshopt_analyzeVertexCache(long indices, long index_count, long vertex_count, int cache_size, int warp_size, int primgroup_size, long __result) struct meshopt_VertexCacheStatistics meshopt_analyzeVertexCache(unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size, unsigned int warp_size, unsigned int primgroup_size)
-
meshopt_analyzeVertexCache
public static MeshoptVertexCacheStatistics meshopt_analyzeVertexCache(IntBuffer indices, long vertex_count, int cache_size, int warp_size, int primgroup_size, MeshoptVertexCacheStatistics __result) struct meshopt_VertexCacheStatistics meshopt_analyzeVertexCache(unsigned int const * indices, size_t index_count, size_t vertex_count, unsigned int cache_size, unsigned int warp_size, unsigned int primgroup_size)
-
nmeshopt_analyzeOverdraw
public static void nmeshopt_analyzeOverdraw(long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_OverdrawStatistics meshopt_analyzeOverdraw(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_analyzeOverdraw
public static MeshoptOverdrawStatistics meshopt_analyzeOverdraw(IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptOverdrawStatistics __result) struct meshopt_OverdrawStatistics meshopt_analyzeOverdraw(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_analyzeVertexFetch
public static void nmeshopt_analyzeVertexFetch(long indices, long index_count, long vertex_count, long vertex_size, long __result) struct meshopt_VertexFetchStatistics meshopt_analyzeVertexFetch(unsigned int const * indices, size_t index_count, size_t vertex_count, size_t vertex_size)
-
meshopt_analyzeVertexFetch
public static MeshoptVertexFetchStatistics meshopt_analyzeVertexFetch(IntBuffer indices, long vertex_count, long vertex_size, MeshoptVertexFetchStatistics __result) struct meshopt_VertexFetchStatistics meshopt_analyzeVertexFetch(unsigned int const * indices, size_t index_count, size_t vertex_count, size_t vertex_size)
-
nmeshopt_buildMeshlets
public static long nmeshopt_buildMeshlets(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long max_triangles, float cone_weight) size_t meshopt_buildMeshlets(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t max_triangles, float cone_weight)
-
meshopt_buildMeshlets
public static long meshopt_buildMeshlets(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long max_triangles, float cone_weight) size_t meshopt_buildMeshlets(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t max_triangles, float cone_weight)
-
nmeshopt_buildMeshletsScan
public static long nmeshopt_buildMeshletsScan(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsScan(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, size_t vertex_count, size_t max_vertices, size_t max_triangles)
-
meshopt_buildMeshletsScan
public static long meshopt_buildMeshletsScan(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, long vertex_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsScan(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, size_t vertex_count, size_t max_vertices, size_t max_triangles)
-
meshopt_buildMeshletsBound
public static long meshopt_buildMeshletsBound(long index_count, long max_vertices, long max_triangles) size_t meshopt_buildMeshletsBound(size_t index_count, size_t max_vertices, size_t max_triangles)
-
nmeshopt_buildMeshletsFlex
public static long nmeshopt_buildMeshletsFlex(long meshlets, long meshlet_vertices, long meshlet_triangles, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long min_triangles, long max_triangles, float cone_weight, float split_factor) size_t meshopt_buildMeshletsFlex(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t min_triangles, size_t max_triangles, float cone_weight, float split_factor)
-
meshopt_buildMeshletsFlex
public static long meshopt_buildMeshletsFlex(MeshoptMeshlet.Buffer meshlets, IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, long max_vertices, long min_triangles, long max_triangles, float cone_weight, float split_factor) size_t meshopt_buildMeshletsFlex(struct meshopt_Meshlet * meshlets, unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t max_vertices, size_t min_triangles, size_t max_triangles, float cone_weight, float split_factor)
-
nmeshopt_optimizeMeshlet
public static void nmeshopt_optimizeMeshlet(long meshlet_vertices, long meshlet_triangles, long triangle_count, long vertex_count) void meshopt_optimizeMeshlet(unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, size_t triangle_count, size_t vertex_count)
-
meshopt_optimizeMeshlet
public static void meshopt_optimizeMeshlet(IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles) void meshopt_optimizeMeshlet(unsigned int * meshlet_vertices, unsigned char * meshlet_triangles, size_t triangle_count, size_t vertex_count)
-
nmeshopt_computeClusterBounds
public static void nmeshopt_computeClusterBounds(long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_Bounds meshopt_computeClusterBounds(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_computeClusterBounds
public static MeshoptBounds meshopt_computeClusterBounds(IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeClusterBounds(unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_computeMeshletBounds
public static void nmeshopt_computeMeshletBounds(long meshlet_vertices, long meshlet_triangles, long triangle_count, long vertex_positions, long vertex_count, long vertex_positions_stride, long __result) struct meshopt_Bounds meshopt_computeMeshletBounds(unsigned int const * meshlet_vertices, unsigned char const * meshlet_triangles, size_t triangle_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_computeMeshletBounds
public static MeshoptBounds meshopt_computeMeshletBounds(IntBuffer meshlet_vertices, ByteBuffer meshlet_triangles, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeMeshletBounds(unsigned int const * meshlet_vertices, unsigned char const * meshlet_triangles, size_t triangle_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_computeSphereBounds
public static void nmeshopt_computeSphereBounds(long positions, long count, long positions_stride, long radii, long radii_stride, long __result) struct meshopt_Bounds meshopt_computeSphereBounds(float const * positions, size_t count, size_t positions_stride, float const * radii, size_t radii_stride)
-
meshopt_computeSphereBounds
public static MeshoptBounds meshopt_computeSphereBounds(FloatBuffer positions, long count, long positions_stride, @Nullable FloatBuffer radii, long radii_stride, MeshoptBounds __result) struct meshopt_Bounds meshopt_computeSphereBounds(float const * positions, size_t count, size_t positions_stride, float const * radii, size_t radii_stride)
-
nmeshopt_partitionClusters
public static long nmeshopt_partitionClusters(long destination, long cluster_indices, long total_index_count, long cluster_index_counts, long cluster_count, long vertex_count, long target_partition_size) size_t meshopt_partitionClusters(unsigned int * destination, unsigned int const * cluster_indices, size_t total_index_count, unsigned int const * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size)
-
meshopt_partitionClusters
public static long meshopt_partitionClusters(IntBuffer destination, IntBuffer cluster_indices, IntBuffer cluster_index_counts, long vertex_count, long target_partition_size) size_t meshopt_partitionClusters(unsigned int * destination, unsigned int const * cluster_indices, size_t total_index_count, unsigned int const * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size)
-
nmeshopt_spatialSortRemap
public static void nmeshopt_spatialSortRemap(long destination, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortRemap(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_spatialSortRemap
public static void meshopt_spatialSortRemap(IntBuffer destination, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortRemap(unsigned int * destination, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_spatialSortTriangles
public static void nmeshopt_spatialSortTriangles(long destination, long indices, long index_count, long vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortTriangles(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
meshopt_spatialSortTriangles
public static void meshopt_spatialSortTriangles(IntBuffer destination, IntBuffer indices, FloatBuffer vertex_positions, long vertex_count, long vertex_positions_stride) void meshopt_spatialSortTriangles(unsigned int * destination, unsigned int const * indices, size_t index_count, float const * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
-
nmeshopt_setAllocator
public static void nmeshopt_setAllocator(long allocate, long deallocate) void meshopt_setAllocator(void * (*) (size_t) allocate, void (*) (void *) deallocate)
-
meshopt_setAllocator
void meshopt_setAllocator(void * (*) (size_t) allocate, void (*) (void *) deallocate)
-
meshopt_quantizeUnorm
public static int meshopt_quantizeUnorm(float v, int N) Quantizes a float in[0..1]
range into an N-bit fixed pointunorm
value.Assumes reconstruction function
q / (2N - 1)
, which is the case for fixed-function normalized fixed point conversion. Maximum reconstruction error:1 / 2N+1
. -
meshopt_quantizeSnorm
public static int meshopt_quantizeSnorm(float v, int N) Quantizes a float in[-1..1]
range into an N-bit fixed pointsnorm
value.Assumes reconstruction function
q / (2N-1 - 1)
, which is the case for fixed-function normalized fixed point conversion (except early OpenGL versions). Maximum reconstruction error:1 / 2N
. -
meshopt_quantizeHalf
public static short meshopt_quantizeHalf(float v) Quantizes a float into half-precision (as defined by IEEE-754 fp16) floating point value.Generates
+-inf
for overflow, preservesNaN
, flushes denormals to zero, rounds to nearest. Representable magnitude range:[6e-5; 65504]
. Maximum relative reconstruction error:5e-4
. -
meshopt_quantizeFloat
public static float meshopt_quantizeFloat(float v, int N) Quantizes a float into a floating point value with a limited number of significant mantissa bits, preserving the IEEE-754 fp32 binary representation.Generates
+-inf
for overflow, preservesNaN
, flushes denormals to zero, rounds to nearest. AssumesN
is in a valid mantissa precision range, which is1..23
. -
meshopt_dequantizeHalf
public static float meshopt_dequantizeHalf(short h) Reverse quantization of a half-precision (as defined by IEEE-754 fp16) floating point value.Preserves Inf/NaN, flushes denormals to zero.
-