本文整理汇总了C++中VRTransformPtr::getUp方法的典型用法代码示例。如果您正苦于以下问题:C++ VRTransformPtr::getUp方法的具体用法?C++ VRTransformPtr::getUp怎么用?C++ VRTransformPtr::getUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VRTransformPtr
的用法示例。
在下文中一共展示了VRTransformPtr::getUp方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: capture
void VRRecorder::capture() {
auto v = view.lock();
if (!v) {
v = VRSetup::getCurrent()->getView(viewID);
view = v;
}
if (!v) return;
if (frameLimitReached()) return;
//int ts = VRGlobals::get()->CURRENT_FRAME;
VRFrame* f = new VRFrame();
captures.push_back(f);
f->capture = v->grab();
f->timestamp = getTime()*1e-3;
VRTransformPtr t = v->getCamera();
if (t == 0) return;
f->f = t->getFrom();
f->a = t->getAt();
f->u = t->getUp();
f->width = f->capture->getImage()->getWidth();
f->height = f->capture->getImage()->getHeight();
if (!frame) initFrame();
f->transcode(frame, codec_context, sws_context, captures.size()-1);
}
示例2: capture
void VRRecorder::capture() {
auto v = view.lock();
if (!v) {
v = VRSetupManager::getCurrent()->getView(viewID);
view = v;
}
if (!v) return;
if (frameLimitReached()) return;
//int ts = VRGlobals::get()->CURRENT_FRAME;
VRFrame* f = new VRFrame();
captures.push_back(f);
f->capture = v->grab();
f->timestamp = glutGet(GLUT_ELAPSED_TIME);
VRTransformPtr t = v->getCamera();
if (t == 0) return;
f->f = t->getFrom();
f->a = t->getAt();
f->u = t->getUp();
}