INNER CODE UNIT · C++
log
cadaver/turso3d · Turso3DTest/Main.cpp:121
log = new Log();
// Init worker threads
bool useThreads = true;
if (arguments.size() > 1 && arguments[1].find("nothreads") != std::string::npos)
useThreads = false;
workQueue = new WorkQueue(useThreads ? 0 : 1);
LOGINFOF("Using %d threads", workQueue->NumThreads());
// Add data directory
cache = new ResourceCache();
cache->AddResourceDir(ExecutableDir() + "Data");
// Create the Graphics subsystem to open the application window and initialize OpenGL
graphics = new Graphics("Turso3D renderer test", IntVector2(1920, 1080), WINDOWED);
if (!graphics->IsInitialized())
return false;