Mercurial > hg > Game > Cerium
changeset 1183:8fd004a3f02c draft
add SpeTaskManagerImpl to Makefile.fifo
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 03 Jul 2011 17:22:12 +0900 |
parents | 5a9bee9cc8c9 |
children | 26dea600d4cd |
files | Renderer/Test/ball_bound.cc TaskManager/Makefile.fifo |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Test/ball_bound.cc Tue Jun 28 17:51:11 2011 +0900 +++ b/Renderer/Test/ball_bound.cc Sun Jul 03 17:22:12 2011 +0900 @@ -52,7 +52,7 @@ } } -static int time = 0; +static int time_val = 0; static void ball_move_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) @@ -62,19 +62,19 @@ if (pad->circle.isPush()) { node->set_move_collision(ball_move_idle2, ball_collision_idle); - time = 0; + time_val = 0; } - time++; + time_val++; - if (time > 90) { + if (time_val > 90) { float w = (float)random(); w = fmodf(w, screen_w - ball_radius*2); node->xyz[0] = w + ball_radius; node->xyz[1] = h0; node->set_move_collision(ball_move, ball_collision); - time = 0; + time_val = 0; } }
--- a/TaskManager/Makefile.fifo Tue Jun 28 17:51:11 2011 +0900 +++ b/TaskManager/Makefile.fifo Sun Jul 03 17:22:12 2011 +0900 @@ -12,7 +12,11 @@ all: default default: $(TARGET) -ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_FIFO_OBJS) $(KERN_MEM_OBJS) +ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) \ + $(KERN_SYSTASK_OBJS) $(IMPL_FIFO_OBJS) $(KERN_MEM_OBJS) \ + Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o \ + Cell/spe/ShowTime.o Cell/spe/StartProfile.o + Makefile.dep: make -f Makefile.fifo depend