Skip to content

Instantly share code, notes, and snippets.

@hadronized
Created June 11, 2011 15:35
Show Gist options
  • Save hadronized/1020677 to your computer and use it in GitHub Desktop.
Save hadronized/1020677 to your computer and use it in GitHub Desktop.
wtf ...
aiString str;
std::for_each(_pScene->mMaterials, _pScene->mMaterials+_pScene->mNumMaterials, [&](aiMaterial *pMat) {
pMat->Get(AI_MATKEY_NAME, str);
cout << str.data << endl;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment