You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/assimp-test.c

31 lines
673 B

/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <string.h>
int main(int argc, char *argv[])
{
const struct aiScene* scene = NULL;
/* NFF file for a single spere with radius 5 at pos 0x0x0 */
const char* buf =
"--- begin of file\n"
"s 0 0 0 5\n"
"--- end of file\n";
(void)argc;
(void)argv;
scene = aiImportFileFromMemory(buf, strlen(buf), aiProcessPreset_TargetRealtime_MaxQuality, "nff");
(void)scene;
if (scene->mNumMeshes != 1) return 1;
aiReleaseImport(scene);
return 0;
}