box3d/samples/mesh_loader.h

21 lines
509 B
C
Raw Normal View History

2026-05-10 13:36:52 -07:00
// 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 );