comparison Renderer/Engine/viewer.cc @ 913:b2ca394bbd50

set_game_task fix.
author tkaito
date Tue, 20 Jul 2010 17:31:05 +0900
parents 2683838396c6
children 05696567d1d2
comparison
equal deleted inserted replaced
912:60c5d105ea09 913:b2ca394bbd50
175 sgpack->init(); 175 sgpack->init();
176 ppack = (PolygonPack*)manager->allocate(sizeof(PolygonPack)); 176 ppack = (PolygonPack*)manager->allocate(sizeof(PolygonPack));
177 177
178 spackList_length = (this->height + split_screen_h - 1) / split_screen_h; 178 spackList_length = (this->height + split_screen_h - 1) / split_screen_h;
179 spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*spackList_length); 179 spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*spackList_length);
180 printf("spackList %0x height %d\n",(unsigned int)spackList, this->height); 180 printf("spackList %0x height %d\n",(unsigned long)spackList, this->height);
181 181
182 /** 182 /**
183 * SPU に送る address list は 16 バイト倍数でないといけない。 183 * SPU に送る address list は 16 バイト倍数でないといけない。
184 * spackList_length*sizeof(SpanPack*) が 16 バイト倍数になるような 184 * spackList_length*sizeof(SpanPack*) が 16 バイト倍数になるような
185 * length_align を求めている。はみ出した部分は使われない 185 * length_align を求めている。はみ出した部分は使われない