30 lines · 673 B · C
RawDownload
/* * 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;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t