Created
October 15, 2013 22:54
-
-
Save sherief/6999924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, const char * argv[]) | |
{ | |
Assimp::Importer importer; | |
unsigned int ppsteps = | |
aiProcess_FindInvalidData | // detect invalid model data, such as invalid normal vectors | |
0; | |
// And have it read the given file with some example postprocessing | |
// Usually - if speed is not the most important aspect for you - you'll | |
// propably to request more postprocessing than we do in this example. | |
const aiScene* scene = importer.ReadFile("untitled.dae", | |
ppsteps); | |
// If the import failed, report it | |
if(!scene) | |
{ | |
return 1; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment