Skip to content

Commit 717ce26

Browse files
committed
Fixed relative paths of asset loading examples.
1 parent 7e1d7ba commit 717ce26

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

allocore/examples/graphics/font.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class MyApp : public App{
2121
Font font3;
2222

2323
MyApp()
24-
: font1("../../share/fonts/VeraMoIt.ttf", 20),
25-
font2("../../share/fonts/VeraMoBd.ttf", 14),
26-
font3("../../share/fonts/VeraMono.ttf", 10)
24+
: font1("allocore/share/fonts/VeraMoIt.ttf", 20),
25+
font2("allocore/share/fonts/VeraMoBd.ttf", 14),
26+
font3("allocore/share/fonts/VeraMono.ttf", 10)
2727
{
2828
nav().pos(0,0,4);
2929
initWindow(Window::Dim(400,200));

allocore/examples/graphics/modelShader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ MyWindow win1;
153153

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

159159
// load in a "scene"

allocore/examples/graphics/textureImage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct MyApp : App {
2424

2525
// Load a .jpg file
2626
//
27-
const char *filename = "../../share/images/tiny.jpg";
27+
const char *filename = "allocore/share/images/tiny.jpg";
2828

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

0 commit comments

Comments
 (0)