diff options
author | David Walter Seikel | 2014-04-22 13:59:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-22 13:59:32 +1000 |
commit | 5b6db32b857c6c55ab455af82a9043e157e08fe8 (patch) | |
tree | 7ad87e1a5488b739648d60d477d6d3f0e4b05b80 /ClientHamr | |
parent | We don't need the testlua directory any more. (diff) | |
download | SledjHamr-5b6db32b857c6c55ab455af82a9043e157e08fe8.zip SledjHamr-5b6db32b857c6c55ab455af82a9043e157e08fe8.tar.gz SledjHamr-5b6db32b857c6c55ab455af82a9043e157e08fe8.tar.bz2 SledjHamr-5b6db32b857c6c55ab455af82a9043e157e08fe8.tar.xz |
Moved images to media, much better idea.
Diffstat (limited to 'ClientHamr')
-rwxr-xr-x | ClientHamr/extantz/build.lua | 4 | ||||
-rw-r--r-- | ClientHamr/extantz/extantz.c | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ClientHamr/extantz/build.lua b/ClientHamr/extantz/build.lua index baddae6..7e8c29c 100755 --- a/ClientHamr/extantz/build.lua +++ b/ClientHamr/extantz/build.lua | |||
@@ -17,9 +17,9 @@ CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/inc | |||
17 | LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' | 17 | LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' |
18 | libs = libs .. ' -lIrrlicht -lGL -lbz2' | 18 | libs = libs .. ' -lIrrlicht -lGL -lbz2' |
19 | 19 | ||
20 | removeFiles(dir, {'extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', '../../images/extantz.edj'}) | 20 | removeFiles(dir, {'extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', '../../media/extantz.edj'}) |
21 | 21 | ||
22 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../images/extantz.edj') | 22 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../media/extantz.edj') |
23 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) | 23 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) |
24 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) | 24 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) |
25 | runCommand('extantz', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) | 25 | runCommand('extantz', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) |
diff --git a/ClientHamr/extantz/extantz.c b/ClientHamr/extantz/extantz.c index cb8b323..09b5196 100644 --- a/ClientHamr/extantz/extantz.c +++ b/ClientHamr/extantz/extantz.c | |||
@@ -37,9 +37,9 @@ static Elm_Genlist_Item_Class *grid_gic = NULL; | |||
37 | static Elm_Genlist_Item_Class *account_gic = NULL; | 37 | static Elm_Genlist_Item_Class *account_gic = NULL; |
38 | static Elm_Genlist_Item_Class *viewer_gic = NULL; | 38 | static Elm_Genlist_Item_Class *viewer_gic = NULL; |
39 | 39 | ||
40 | //static const char *img1 = PACKAGE_DATA_DIR "/images/plant_01.jpg"; | 40 | //static const char *img1 = PACKAGE_DATA_DIR "/media/plant_01.jpg"; |
41 | //static const char *img2 = PACKAGE_DATA_DIR "/images/sky_01.jpg"; | 41 | //static const char *img2 = PACKAGE_DATA_DIR "/media/sky_01.jpg"; |
42 | static const char *img3 = PACKAGE_DATA_DIR "/images/rock_01.jpg"; | 42 | static const char *img3 = PACKAGE_DATA_DIR "/media/rock_01.jpg"; |
43 | 43 | ||
44 | 44 | ||
45 | #define EPHYSICS_TEST_THEME "extantz" | 45 | #define EPHYSICS_TEST_THEME "extantz" |
@@ -1090,7 +1090,7 @@ static void create_handles(Evas_Object *obj) | |||
1090 | 1090 | ||
1091 | hand = evas_object_image_filled_add(evas_object_evas_get(obj)); | 1091 | hand = evas_object_image_filled_add(evas_object_evas_get(obj)); |
1092 | evas_object_resize(hand, 31, 31); | 1092 | evas_object_resize(hand, 31, 31); |
1093 | snprintf(buf, sizeof(buf), "%s/images/pt.png", elm_app_data_dir_get()); | 1093 | snprintf(buf, sizeof(buf), "%s/media/pt.png", elm_app_data_dir_get()); |
1094 | evas_object_image_file_set(hand, buf, NULL); | 1094 | evas_object_image_file_set(hand, buf, NULL); |
1095 | if (i == 0) evas_object_move(hand, x - 15, y - 15); | 1095 | if (i == 0) evas_object_move(hand, x - 15, y - 15); |
1096 | else if (i == 1) evas_object_move(hand, x + w - 15, y - 15); | 1096 | else if (i == 1) evas_object_move(hand, x + w - 15, y - 15); |
@@ -1404,7 +1404,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1404 | // If you want efl to handle finding your bin/lib/data dirs, you must do this below. | 1404 | // If you want efl to handle finding your bin/lib/data dirs, you must do this below. |
1405 | elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR); | 1405 | elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR); |
1406 | elm_app_compile_data_dir_set(PACKAGE_DATA_DIR); | 1406 | elm_app_compile_data_dir_set(PACKAGE_DATA_DIR); |
1407 | elm_app_info_set(elm_main, "datadir", "images/sky_03.jpg"); | 1407 | elm_app_info_set(elm_main, "datadir", "media/sky_03.jpg"); |
1408 | fprintf(stdout, "prefix was set to: %s\n", elm_app_prefix_dir_get()); | 1408 | fprintf(stdout, "prefix was set to: %s\n", elm_app_prefix_dir_get()); |
1409 | fprintf(stdout, "data directory is: %s\n", elm_app_data_dir_get()); | 1409 | fprintf(stdout, "data directory is: %s\n", elm_app_data_dir_get()); |
1410 | fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get()); | 1410 | fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get()); |
@@ -1444,7 +1444,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1444 | bg = elm_bg_add(gld->win); | 1444 | bg = elm_bg_add(gld->win); |
1445 | elm_bg_load_size_set(bg, gld->win_w, gld->win_h); | 1445 | elm_bg_load_size_set(bg, gld->win_w, gld->win_h); |
1446 | elm_bg_option_set(bg, ELM_BG_OPTION_CENTER); | 1446 | elm_bg_option_set(bg, ELM_BG_OPTION_CENTER); |
1447 | snprintf(buf, sizeof(buf), "%s/images/sky_03.jpg", elm_app_data_dir_get()); | 1447 | snprintf(buf, sizeof(buf), "%s/media/sky_03.jpg", elm_app_data_dir_get()); |
1448 | elm_bg_file_set(bg, buf, NULL); | 1448 | elm_bg_file_set(bg, buf, NULL); |
1449 | evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); | 1449 | evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); |
1450 | elm_win_resize_object_add(gld->win, bg); | 1450 | elm_win_resize_object_add(gld->win, bg); |
@@ -1538,7 +1538,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1538 | ephysics_body_friction_set(boundary, 0); | 1538 | ephysics_body_friction_set(boundary, 0); |
1539 | 1539 | ||
1540 | box1 = elm_image_add(gld->win); | 1540 | box1 = elm_image_add(gld->win); |
1541 | elm_image_file_set(box1, PACKAGE_DATA_DIR "/images/" EPHYSICS_TEST_THEME ".edj", "blue-cube"); | 1541 | elm_image_file_set(box1, PACKAGE_DATA_DIR "/media/" EPHYSICS_TEST_THEME ".edj", "blue-cube"); |
1542 | evas_object_move(box1, gld->win_w / 2 - 80, gld->win_h - 200); | 1542 | evas_object_move(box1, gld->win_w / 2 - 80, gld->win_h - 200); |
1543 | evas_object_resize(box1, 70, 70); | 1543 | evas_object_resize(box1, 70, 70); |
1544 | evas_object_show(box1); | 1544 | evas_object_show(box1); |
@@ -1552,7 +1552,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1552 | ephysics_body_sleeping_threshold_set(box_body1, 0.1, 0.1); | 1552 | ephysics_body_sleeping_threshold_set(box_body1, 0.1, 0.1); |
1553 | 1553 | ||
1554 | box2 = elm_image_add(gld->win); | 1554 | box2 = elm_image_add(gld->win); |
1555 | elm_image_file_set(box2, PACKAGE_DATA_DIR "/images/" EPHYSICS_TEST_THEME ".edj", "purple-cube"); | 1555 | elm_image_file_set(box2, PACKAGE_DATA_DIR "/media/" EPHYSICS_TEST_THEME ".edj", "purple-cube"); |
1556 | evas_object_move(box2, gld->win_w / 2 + 10, gld->win_h - 200); | 1556 | evas_object_move(box2, gld->win_w / 2 + 10, gld->win_h - 200); |
1557 | evas_object_resize(box2, 70, 70); | 1557 | evas_object_resize(box2, 70, 70); |
1558 | evas_object_show(box2); | 1558 | evas_object_show(box2); |