diff options
author | David Walter Seikel | 2014-05-05 20:04:08 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-05 20:04:08 +1000 |
commit | 969f1968f2f74f8f09c4788bc7f7b1c9655ad354 (patch) | |
tree | 90d1d572f57c03b65c105cdcc47e9b79640a617d /src/extantz | |
parent | GuiLuaDo() now returns astructure, and has that structure in Lua's C registry... (diff) | |
download | SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.zip SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.gz SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.bz2 SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.xz |
Call skang modules from extantz. Needs some clean up.
Diffstat (limited to 'src/extantz')
-rwxr-xr-x | src/extantz/build.lua | 7 | ||||
-rw-r--r-- | src/extantz/chat.c | 2 | ||||
-rw-r--r-- | src/extantz/extantz.c | 7 | ||||
-rw-r--r-- | src/extantz/extantz.h | 2 | ||||
-rw-r--r-- | src/extantz/woMan.c | 2 |
5 files changed, 15 insertions, 5 deletions
diff --git a/src/extantz/build.lua b/src/extantz/build.lua index d3c983a..5ea2029 100755 --- a/src/extantz/build.lua +++ b/src/extantz/build.lua | |||
@@ -13,9 +13,9 @@ if 'nil' == type(dir) then | |||
13 | dir = workingDir | 13 | dir = workingDir |
14 | end | 14 | end |
15 | 15 | ||
16 | CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include' | 16 | CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include -I../GuiLua' |
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 -lGuiLua -lwinFang -lRunnr' |
19 | 19 | ||
20 | removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'Evas_3D_demo.o', '../../media/extantz.edj'}) | 20 | removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'Evas_3D_demo.o', '../../media/extantz.edj'}) |
21 | removeFiles(dir, {'../../extantz', 'camera.o', 'chat.o', 'files.o', 'woMan.o'}) | 21 | removeFiles(dir, {'../../extantz', 'camera.o', 'chat.o', 'files.o', 'woMan.o'}) |
@@ -24,4 +24,5 @@ runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../medi | |||
24 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) | 24 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) |
25 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) | 25 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) |
26 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) | 26 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) |
27 | compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'Evas_3D_demo', 'chat', 'files', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o -lwinFang') | 27 | CFLAGS = CFLAGS .. ' -Wl,-export-dynamic' |
28 | compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'Evas_3D_demo', 'chat', 'files', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o') | ||
diff --git a/src/extantz/chat.c b/src/extantz/chat.c index d608620..d060cb1 100644 --- a/src/extantz/chat.c +++ b/src/extantz/chat.c | |||
@@ -16,7 +16,7 @@ winFang *chat_add(globals *ourGlobals) | |||
16 | Widget *wid; | 16 | Widget *wid; |
17 | Evas_Object *bx, *en; | 17 | Evas_Object *bx, *en; |
18 | 18 | ||
19 | me = winFangAdd(ourGlobals->win, 30, 500, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "chatter box", "chat"); | 19 | me = winFangAdd(ourGlobals->win, 30, 520, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "chatter box", "chat"); |
20 | eina_clist_add_head(&ourGlobals->winFangs, &me->node); | 20 | eina_clist_add_head(&ourGlobals->winFangs, &me->node); |
21 | 21 | ||
22 | bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, | 22 | bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, |
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index e8683f8..7346aea 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c | |||
@@ -472,6 +472,8 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
472 | woMan_add(&ourGlobals); | 472 | woMan_add(&ourGlobals); |
473 | chat_add(&ourGlobals); | 473 | chat_add(&ourGlobals); |
474 | ourGlobals.files = filesAdd(&ourGlobals, (char *) elm_app_data_dir_get(), EINA_TRUE, EINA_FALSE); | 474 | ourGlobals.files = filesAdd(&ourGlobals, (char *) elm_app_data_dir_get(), EINA_TRUE, EINA_FALSE); |
475 | char *args[] = {"extantz", "-l", "test", "-foo", "COMBINED!", NULL}; | ||
476 | GuiLua *test = GuiLuaDo(5, args, ourGlobals.win); | ||
475 | 477 | ||
476 | // Gotta do this after adding the windows, otherwise the menu renders under the window. | 478 | // Gotta do this after adding the windows, otherwise the menu renders under the window. |
477 | // This sucks, gotta redefine this menu each time we create a new window? | 479 | // This sucks, gotta redefine this menu each time we create a new window? |
@@ -509,6 +511,11 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
509 | Evas_3D_Demo_fini(&ourGlobals); | 511 | Evas_3D_Demo_fini(&ourGlobals); |
510 | eo_unref(ourGlobals.tb); | 512 | eo_unref(ourGlobals.tb); |
511 | 513 | ||
514 | EINA_CLIST_FOR_EACH_ENTRY(win, &test->winFangs, winFang, node) | ||
515 | { | ||
516 | winFangDel(win); | ||
517 | } | ||
518 | |||
512 | EINA_CLIST_FOR_EACH_ENTRY(win, &ourGlobals.winFangs, winFang, node) | 519 | EINA_CLIST_FOR_EACH_ENTRY(win, &ourGlobals.winFangs, winFang, node) |
513 | { | 520 | { |
514 | winFangDel(win); | 521 | winFangDel(win); |
diff --git a/src/extantz/extantz.h b/src/extantz/extantz.h index 7d969b1..969ac98 100644 --- a/src/extantz/extantz.h +++ b/src/extantz/extantz.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <EPhysics.h> | 11 | #include <EPhysics.h> |
12 | #include "extantzCamera.h" | 12 | #include "extantzCamera.h" |
13 | #include "winFang.h" | 13 | #include "winFang.h" |
14 | #include "Runnr.h" | ||
15 | #include "GuiLua.h" | ||
14 | 16 | ||
15 | 17 | ||
16 | #ifdef GL_GLES | 18 | #ifdef GL_GLES |
diff --git a/src/extantz/woMan.c b/src/extantz/woMan.c index f0a2ed4..ee0cc02 100644 --- a/src/extantz/woMan.c +++ b/src/extantz/woMan.c | |||
@@ -159,7 +159,7 @@ winFang *woMan_add(globals *ourGlobals) | |||
159 | char buf[PATH_MAX]; | 159 | char buf[PATH_MAX]; |
160 | int i; | 160 | int i; |
161 | 161 | ||
162 | me = winFangAdd(ourGlobals->win, 30, 30, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "virtual world manager", "woMan"); | 162 | me = winFangAdd(ourGlobals->win, 30, 150, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "virtual world manager", "woMan"); |
163 | eina_clist_add_head(&ourGlobals->winFangs, &me->node); | 163 | eina_clist_add_head(&ourGlobals->winFangs, &me->node); |
164 | 164 | ||
165 | bx = elm_box_add(me->win); | 165 | bx = elm_box_add(me->win); |