Permalink
Browse files

Assets path updates.

  • Loading branch information...
1 parent 0d226e8 commit e806836ff6a9ddaca96d97fb056b0734067adde8 @falcon4ever committed May 8, 2012
@@ -7,23 +7,23 @@ void testApp::setup(){
//old OF default is 96 - but this results in fonts looking larger than in other programs.
ofTrueTypeFont::setGlobalDpi(72);
- verdana14.loadFont("verdana.ttf", 14, true, true);
+ verdana14.loadFont(ofToDataPath("", true) + "/app/native/verdana.ttf", 14, true, true);
verdana14.setLineHeight(18.0f);
verdana14.setLetterSpacing(1.037);
- verdana30.loadFont("verdana.ttf", 30, true, true);
+ verdana30.loadFont(ofToDataPath("", true) + "/app/native/verdana.ttf", 30, true, true);
verdana30.setLineHeight(34.0f);
verdana30.setLetterSpacing(1.035);
- verdana14A.loadFont("frabk.ttf", 14, false);
+ verdana14A.loadFont(ofToDataPath("", true) + "/app/native/frabk.ttf", 14, false);
verdana14A.setLineHeight(18.0f);
verdana14A.setLetterSpacing(1.037);
- franklinBook14.loadFont("frabk.ttf", 14);
+ franklinBook14.loadFont(ofToDataPath("", true) + "/app/native/frabk.ttf", 14);
franklinBook14.setLineHeight(18.0f);
franklinBook14.setLetterSpacing(1.037);
- franklinBook14A.loadFont("frabk.ttf", 14, false);
+ franklinBook14A.loadFont(ofToDataPath("", true) + "/app/native/frabk.ttf", 14, false);
franklinBook14A.setLineHeight(18.0f);
franklinBook14A.setLetterSpacing(1.037);
@@ -2,16 +2,16 @@
//--------------------------------------------------------------
void testApp::setup(){
- bikers.loadImage("bikers.jpg");
- gears.loadImage("gears.gif");
- tdf.loadImage("tdf_1972_poster.jpg");
+ bikers.loadImage(ofToDataPath("", true) + "/app/native/bikers.jpg");
+ gears.loadImage(ofToDataPath("", true) + "/app/native/gears.gif");
+ tdf.loadImage(ofToDataPath("", true) + "/app/native/tdf_1972_poster.jpg");
- tdfSmall.loadImage("tdf_1972_poster.jpg");
+ tdfSmall.loadImage(ofToDataPath("", true) + "/app/native/tdf_1972_poster.jpg");
tdfSmall.resize(tdfSmall.width / 4, tdfSmall.height / 4);
tdfSmall.setImageType(OF_IMAGE_GRAYSCALE);
- transparency.loadImage("transparency.png");
- bikeIcon.loadImage("bike_icon.png");
+ transparency.loadImage(ofToDataPath("", true) + "/app/native/transparency.png");
+ bikeIcon.loadImage(ofToDataPath("", true) + "/app/native/bike_icon.png");
bikeIcon.setImageType(OF_IMAGE_GRAYSCALE);
}
@@ -2,13 +2,13 @@
//--------------------------------------------------------------
void testApp::setup(){
- synth.loadSound("sounds/synth.wav");
- beats.loadSound("sounds/1085.mp3");
- vocals.loadSound("sounds/Violet.mp3");
+ synth.loadSound(ofToDataPath("", true) + "/app/native/sounds/synth.wav");
+ beats.loadSound(ofToDataPath("", true) + "/app/native/sounds/1085.mp3");
+ vocals.loadSound(ofToDataPath("", true) + "/app/native/sounds/Violet.mp3");
synth.setVolume(0.75f);
beats.setVolume(0.75f);
vocals.setVolume(0.5f);
- font.loadFont("Sudbury_Basin_3D.ttf", 32);
+ font.loadFont(ofToDataPath("", true) + "/app/native/Sudbury_Basin_3D.ttf", 32);
beats.setMultiPlay(false);
vocals.setMultiPlay(true);
}

0 comments on commit e806836

Please sign in to comment.