Example #1
0
void ContrastEditLayout::panActiveViewport(const vec2& delta)
{
	Viewport* vp = this->getActiveViewport();
	if (vp)// && vp->name != Viewport::CONTRAST_EDITOR)
		vp->camera->pan(delta.x * vp->getAspect(), delta.y);
}
Example #2
0
void FourViewLayout::panActiveViewport(const vec2& delta)
{
	Viewport* vp = this->getActiveViewport();
	if (vp)
		vp->camera->pan(delta.x * vp->getAspect(), delta.y);
}