Asset refactor, phase one.
This commit is contained in:
@@ -151,32 +151,32 @@ errorret_t assetMeshLoader(assetfile_t *file) {
|
||||
errorOk();
|
||||
}
|
||||
|
||||
errorret_t assetMeshLoadToOutput(
|
||||
const char_t *path,
|
||||
assetmeshoutput_t *output
|
||||
) {
|
||||
assertNotNull(path, "Path cannot be null");
|
||||
assertNotNull(output, "Output cannot be null");
|
||||
assertNotNull(output->outMesh, "Output mesh cannot be null");
|
||||
assertNotNull(output->outVertices, "Output vertices cannot be null");
|
||||
// errorret_t assetMeshLoadToOutput(
|
||||
// const char_t *path,
|
||||
// assetmeshoutput_t *output
|
||||
// ) {
|
||||
// assertNotNull(path, "Path cannot be null");
|
||||
// assertNotNull(output, "Output cannot be null");
|
||||
// assertNotNull(output->outMesh, "Output mesh cannot be null");
|
||||
// assertNotNull(output->outVertices, "Output vertices cannot be null");
|
||||
|
||||
return assetLoad(path, &assetMeshLoader, NULL, output);
|
||||
}
|
||||
// return assetLoad(path, &assetMeshLoader, NULL, output);
|
||||
// }
|
||||
|
||||
errorret_t assetMeshLoad(
|
||||
const char_t *path,
|
||||
mesh_t *outMesh,
|
||||
meshvertex_t **outVertices,
|
||||
const assetmeshinputaxis_t inputAxis
|
||||
) {
|
||||
assertNotNull(path, "Path cannot be null");
|
||||
assertNotNull(outMesh, "Output mesh cannot be null");
|
||||
assertNotNull(outVertices, "Output vertices cannot be null");
|
||||
// errorret_t assetMeshLoad(
|
||||
// const char_t *path,
|
||||
// mesh_t *outMesh,
|
||||
// meshvertex_t **outVertices,
|
||||
// const assetmeshinputaxis_t inputAxis
|
||||
// ) {
|
||||
// assertNotNull(path, "Path cannot be null");
|
||||
// assertNotNull(outMesh, "Output mesh cannot be null");
|
||||
// assertNotNull(outVertices, "Output vertices cannot be null");
|
||||
|
||||
assetmeshoutput_t output = {
|
||||
outMesh,
|
||||
outVertices,
|
||||
inputAxis
|
||||
};
|
||||
return assetMeshLoadToOutput(path, &output);
|
||||
}
|
||||
// assetmeshoutput_t output = {
|
||||
// outMesh,
|
||||
// outVertices,
|
||||
// inputAxis
|
||||
// };
|
||||
// return assetMeshLoadToOutput(path, &output);
|
||||
// }
|
||||
Reference in New Issue
Block a user