ModelViewer implementation.
More...
|
static void * | meshoptAlloc (size_t size) |
|
static void | meshoptFree (void *ptr) |
|
template<typename Vertex , typename Index > |
void | optimizeVertexIndex (Vector< Vertex > &vertices, Vector< Index > &indices) |
|
float | meshGenerateLod (Vector< MeshIndex > &outIndices, Span< const MeshVertex > vertices, Span< const MeshIndex > indices, const float lodScale) |
| Generate a simplified LOD mesh index buffer from the input mesh.
|
|
void | meshBuildMeshlets (Vector< MeshMeshlet > &outMeshlet, Vector< MeshIndex > &outMeshletVertices, Vector< MeshMicroIndex > &outMeshletTriangles, Span< const MeshVertex > vertices, Span< const MeshIndex > indices) |
| Build meshlets from a mesh.
|
|
void | meshLoadObjFile (Vector< MeshVertex > &outVertex, Vector< MeshIndex > &outIndex, const Native::Path &path) |
| Load a mesh from an OBJ file.
|
|
void | drawGizmoCameraFrustum (mat4 viewProj, mat4 frustumViewProj, ImColor color, float lineThickness) |
|
Tuple< ImVec2, ImVec2, ImDrawList * > | getGizmoDrawOffsetRegionList () |
|
MeshScratchBuffers | sceneMeshDataFromVertexIndex (Span< MeshVertex > vertices, Span< MeshIndex > indices, Allocator *allocator, int numLods=kMaxSceneMeshLodCount, bool buildMeshlets=true) |
|
ModelViewer implementation.
◆ MeshIndex
◆ MeshMicroIndex
◆ SceneHandle
◆ drawGizmoCameraFrustum()
◆ getGizmoDrawOffsetRegionList()
◆ meshBuildMeshlets()
Build meshlets from a mesh.
- Parameters
-
outMeshlet | Output meshlet array |
outMeshletVertices | Output meshlet vertex indirection array |
outMeshletTriangles | Output meshlet triangle index array (into meshlet vertices) |
vertices | Input vertex array |
indices | Input index array |
◆ meshGenerateLod()
Generate a simplified LOD mesh index buffer from the input mesh.
- Parameters
-
outIndices | Output index array for the LOD mesh |
vertices | Input vertex array |
indices | Input source index array. |
lodScale | Scale factor for the LOD (0.0 - 1.0) |
- Returns
- Error factor of this LOD to the input mesh
◆ meshLoadObjFile()
Load a mesh from an OBJ file.
- Parameters
-
outVertex | Output vertex array |
outIndex | Output index array |
path | Path to the OBJ file |
◆ meshoptAlloc()
◆ meshoptFree()
◆ optimizeVertexIndex()
◆ sceneMeshDataFromVertexIndex()
◆ kMaxSceneMeshLodCount
◆ kMeshletMaxTriangles
◆ kMeshletMaxVertices
◆ kSceneInvalid
◆ mesh
◆ MeshoptAllocator