本文整理汇总了C++中Arcball::setWindowSize方法的典型用法代码示例。如果您正苦于以下问题:C++ Arcball::setWindowSize方法的具体用法?C++ Arcball::setWindowSize怎么用?C++ Arcball::setWindowSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Arcball
的用法示例。
在下文中一共展示了Arcball::setWindowSize方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resize
void wellingtonModelApp::resize(ResizeEvent event)
{
App::resize( event );
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( 150 );
}
示例2: resize
void ObjLoaderApp::resize( int width, int height )
{
App::resize( width, height );
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( 150 );
}
示例3: resize
void ObjLoaderApp::resize( ResizeEvent event )
{
App::resize( event );
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( 150 );
}
示例4: resize
void BasicShaderIIApp::resize( ResizeEvent event )
{
mCam.setPerspective( 60.0f, getWindowAspectRatio(), 5.0f, 5000.0f );
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( 150 );
}
示例5: resize
void ImageHFApp::resize()
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( vec2( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( getWindowHeight() / 2.0f );
mCam.lookAt( vec3( 0.0f, 0.0f, -150 ), vec3( 0, 0, 0 ) );
mCam.setPerspective( 60.0f, getWindowAspectRatio(), 0.1f, 1000.0f );
gl::setMatrices( mCam );
}
示例6: resize
void gpuPSApp::resize( ResizeEvent event )
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( getWindowHeight() / 2.0f );
mCam.lookAt( Vec3f( 0.0f, 0.0f, -450.0f ), Vec3f::zero() );
mCam.setPerspective( 60.0f, getWindowAspectRatio(), 0.1f, 2000.0f );
gl::setMatrices( mCam );
}
示例7: resize
void CinderProjectionTestApp::resize( ResizeEvent event )
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( getWindowCenter() );
mArcball.setRadius( 150 );
mLookCam.setPerspective(60, getWindowAspectRatio(), 1.0f, 100.0f);
mSweetCam.setPerspective(60, getWindowAspectRatio(), 1.0f, 30.0f);
mProjCam.setPerspective(60, getWindowAspectRatio(), 1.0f, 30.0f);
}
示例8: setup
void BasicApp::setup()
{
mFont = Font( "Arial", 24.0f );
dx::enableAlphaBlending();
mArcball.setQuat( quat( vec3( 0.0577576f, -0.956794f, 0.284971f ), 3.68f ) );
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( vec2( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) );
mArcball.setRadius( getWindowHeight() / 2.0f );
mCam.lookAt( vec3( 0.0f, 0.0f, -150 ), vec3::zero() );
mCam.setPerspective( 60.0f, getWindowAspectRatio(), 0.1f, 1000.0f );
dx::setMatrices( mCam );
openFile();
}
示例9: resize
void ArcballDemoApp::resize()
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( getWindowCenter() );
mArcball.setRadius( 150 );
}
示例10: resize
void camerasApp::resize()
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( getWindowCenter() );
mArcball.setRadius( 150 );
}
示例11: resize
void ArcballDemoApp::resize( int width, int height )
{
mArcball.setWindowSize( getWindowSize() );
mArcball.setCenter( getWindowCenter() );
mArcball.setRadius( 150 );
}