MCPcopy Create free account
hub / github.com/bumptop/BumpTop / LoadSingleFile

Function LoadSingleFile

trunk/win/Source/BT_Util.cpp:4899–4915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4897}
4898
4899NxActorWrapper* LoadSingleFile(QString Inpt)
4900{
4901
4902 FileSystemActor *obj;
4903 Vec3 dims, vel;
4904 vel = Vec3(0.0f);
4905
4906 // Create the actor with proportionate size and the right texture
4907 obj = FileSystemActorFactory::createFileSystemActor(Inpt);
4908 obj->setGlobalPosition(Vec3(0, cam->getEye().y, 0));
4909 obj->setGlobalOrientation(GLOBAL(straightIconOri));
4910 obj->setDims(Vec3(GLOBAL(settings).maxImageSize, GLOBAL(settings).maxImageSize, GLOBAL(settings).yDist));
4911 obj->setFilePath(Inpt);
4912 obj->enableThumbnail();
4913
4914 return obj;
4915}
4916
4917void PushActorAboveGround(NxActorWrapper* a, float extraPush, bool alwaysPush)
4918{

Callers

nothing calls this directly

Calls 4

getEyeMethod · 0.80
enableThumbnailMethod · 0.80
setDimsMethod · 0.45
setFilePathMethod · 0.45

Tested by

no test coverage detected