examples-physical/code/materials/materials.cpp
#include "samplescommon.h"
#ifdef UNICODE
#define tcout std::wcout
#else
#define tcout std::cout
#endif
int _tmain(int argc, _TCHAR* argv[])
{
try {
bex::InstanceMap instances;
bex::setupTestScene(bmh, scene, instances);
bex::apiCall(
ILBCreateJob(bmh, _T(
"TestJob"), scene, _T(
""), &job));
const bool showProgressWindow = true;
int returnCode = 0;
if (!bex::displayJobResult(job, tcout, cameraTarget, fullShadingPass)) {
returnCode = 1;
}
return returnCode;
} catch(bex::Exception& ex) {
tcout << "Beast API error" << std::endl;
tcout << "Error: " << bex::convertStringHandle(errorString) << std::endl;
tcout << "Info: " << bex::convertStringHandle(extendedError) << std::endl;
return 1;
} catch(std::exception& ex) {
tcout << "Standard exception" << std::endl;
tcout << "Error: " << ex.what() << std::endl;;
return 1;
}
}