MCPcopy Create free account
hub / github.com/cinder/Cinder / setup

Method setup

samples/HighDensityDisplay/src/HighDensityDisplayApp.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void 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
55void HighDensityDisplayApp::mouseDrag( MouseEvent event )
56{

Callers

nothing calls this directly

Calls 8

loadImageFunction · 0.85
loadAssetFunction · 0.85
createFunction · 0.50
FontFunction · 0.50
FormatClass · 0.50
getWindowFunction · 0.50
bindFunction · 0.50
connectMethod · 0.45

Tested by

no test coverage detected