initial commit
This commit is contained in:
parent
81af403965
commit
573e1a9fa3
220 changed files with 150440 additions and 0 deletions
21
samples/mesh_loader.h
Normal file
21
samples/mesh_loader.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// SPDX-FileCopyrightText: 2025 Erin Catto
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "box3d/math_functions.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
struct b3MeshData;
|
||||
b3MeshData* CreateMeshData( const char* path, float scale, bool zUp, bool useMedianSplit, bool identifyConvexEdges,
|
||||
bool weldVertices );
|
||||
|
||||
struct TempMesh
|
||||
{
|
||||
std::vector<b3Vec3> vertices;
|
||||
std::vector<int> indices;
|
||||
std::vector<uint8_t> materialIndices;
|
||||
};
|
||||
|
||||
void LoadTempMesh( const char* path, TempMesh* tempMesh, float scale, bool zUp );
|
||||
Loading…
Reference in a new issue