| 37 | } |
| 38 | |
| 39 | void HighDensityDisplayApp::setup() |
| 40 | { |
| 41 | // this should have mipmapping enabled in a real app but leaving it disabled |
| 42 | // since helps us see the change in going from High Density to non-High Density |
| 43 | mLogo = gl::Texture2d::create( loadImage( loadAsset( "CinderAppIcon.png" ) ) ); |
| 44 | |
| 45 | // A font suitable for 24points at both High Density and non-High Density |
| 46 | #if defined( CINDER_MSW ) |
| 47 | mFont = gl::TextureFont::create( Font( "Arial", 24 * 2 ), gl::TextureFont::Format().enableMipmapping() ); |
| 48 | #else |
| 49 | mFont = gl::TextureFont::create( Font( "Helvetica", 24 * 2 ), gl::TextureFont::Format().enableMipmapping() ); |
| 50 | #endif |
| 51 | |
| 52 | getWindow()->getSignalDisplayChange().connect( std::bind( &HighDensityDisplayApp::displayChange, this ) ); |
| 53 | } |
| 54 | |
| 55 | void HighDensityDisplayApp::mouseDrag( MouseEvent event ) |
| 56 | { |