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 ); }
void wellingtonModelApp::resize(ResizeEvent event) { App::resize( event ); mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) ); mArcball.setRadius( 150 ); }
void ObjLoaderApp::resize( ResizeEvent event ) { App::resize( event ); mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( Vec2f( getWindowWidth() / 2.0f, getWindowHeight() / 2.0f ) ); mArcball.setRadius( 150 ); }
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 ); }
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 ); }
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 ); }
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); }
void MemExploreApp::updateLayout() { int pixelSize = 4; mFbo = gl::Fbo(getWindowWidth() / pixelSize, getWindowHeight() / pixelSize); mCamera.setPerspective(60.0f, getWindowAspectRatio(), 0.01f, 100.0f); mCameraArcball.setCenter(getWindowCenter()); mCameraArcball.setRadius(mIsFullscreen ? 500.0f : Vec2f(getWindowSize()).length() * 10.0f); if(mIsFullscreen) hideCursor(); else showCursor(); }
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(); }
void fsExperiments::resize( ResizeEvent event ) { mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( getWindowCenter() ); mArcball.setRadius( 150 ); }
void ArcballDemoApp::resize() { mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( getWindowCenter() ); mArcball.setRadius( 150 ); }
void camerasApp::resize() { mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( getWindowCenter() ); mArcball.setRadius( 150 ); }
void ArcballDemoApp::resize( int width, int height ) { mArcball.setWindowSize( getWindowSize() ); mArcball.setCenter( getWindowCenter() ); mArcball.setRadius( 150 ); }