aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
Diffstat (limited to 'src/extantz')
-rwxr-xr-xsrc/extantz/build.lua7
-rw-r--r--src/extantz/chat.c2
-rw-r--r--src/extantz/extantz.c7
-rw-r--r--src/extantz/extantz.h2
-rw-r--r--src/extantz/woMan.c2
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
14end 14end
15 15
16CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include' 16CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include -I../GuiLua'
17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' 17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux'
18libs = libs .. ' -lIrrlicht -lGL -lbz2' 18libs = libs .. ' -lIrrlicht -lGL -lbz2 -lGuiLua -lwinFang -lRunnr'
19 19
20removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'Evas_3D_demo.o', '../../media/extantz.edj'}) 20removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'Evas_3D_demo.o', '../../media/extantz.edj'})
21removeFiles(dir, {'../../extantz', 'camera.o', 'chat.o', 'files.o', 'woMan.o'}) 21removeFiles(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
24runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) 24runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS)
25runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) 25runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS)
26runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) 26runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS)
27compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'Evas_3D_demo', 'chat', 'files', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o -lwinFang') 27CFLAGS = CFLAGS .. ' -Wl,-export-dynamic'
28compileFiles('../../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);