コード例 #1
0
void GpGpuApp::mouseDown( MouseEvent event )
{
	if ( event.isControlDown() ) {
		mArcball.mouseDown( event.getPos() );
	} else {
		mMouseVelocity	= Vec2f::zero();
		mMouse			= Vec2f( event.getPos() );
		mMouseDown		= true;
	}
}
コード例 #2
0
void PaintingBeingsApp::mouseDown(MouseEvent event)
{
	_arcball.mouseDown(event.getPos());
}
コード例 #3
0
void VboMeshSampleApp::mouseDown( MouseEvent event )
{
	// Rotate with arcball
	mArcball.mouseDown( event.getPos() );
}