Skip to content

Commit

Permalink
Fixed relative paths of asset loading examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewRWx committed Sep 17, 2014
1 parent 913d8e6 commit 4856e9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions allocore/examples/graphics/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class MyApp : public App{
Font font3;

MyApp()
: font1("../../share/fonts/VeraMoIt.ttf", 20),
font2("../../share/fonts/VeraMoBd.ttf", 14),
font3("../../share/fonts/VeraMono.ttf", 10)
: font1("allocore/share/fonts/VeraMoIt.ttf", 20),
font2("allocore/share/fonts/VeraMoBd.ttf", 14),
font3("allocore/share/fonts/VeraMono.ttf", 10)
{
nav().pos(0,0,4);
initWindow(Window::Dim(400,200));
Expand Down
2 changes: 1 addition & 1 deletion allocore/examples/graphics/modelShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ MyWindow win1;

int main (int argc, char * const argv[]) {
searchpaths.addAppPaths(argc, argv);
searchpaths.addSearchPath(searchpaths.appPath() + "../../share");
searchpaths.addSearchPath(searchpaths.appPath() + "../../allocore/share");
searchpaths.print();

// load in a "scene"
Expand Down
2 changes: 1 addition & 1 deletion allocore/examples/graphics/textureImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct MyApp : App {

// Load a .jpg file
//
const char *filename = "../../share/images/tiny.jpg";
const char *filename = "allocore/share/images/tiny.jpg";

if (image.load(filename)) {
printf("Read image from %s\n", filename);
Expand Down

0 comments on commit 4856e9d

Please sign in to comment.