Esempio n. 1
0
void GpGpuApp::mouseDrag( MouseEvent event )
{
	if ( event.isControlDown() ) {
		mArcball.mouseDrag( event.getPos() );
	} else {
		Vec2f pos		= Vec2f( event.getPos() );
		mMouseVelocity	= pos - mMouse;
		mMouse			= pos;
	}
}
void PaintingBeingsApp::mouseDrag(MouseEvent event)
{
	_arcball.mouseDrag(event.getPos());
}
void VboMeshSampleApp::mouseDrag( MouseEvent event )
{
	// Rotate with arcball
	mArcball.mouseDrag( event.getPos() );
}