Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/spe/Load_Texture.cc @ 435:cf2704424cc0
ChainCal task fix
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 24 Sep 2009 22:35:46 +0900 |
parents | afb717c43a3c |
children | 44c0bce54dcf |
rev | line source |
---|---|
322 | 1 // #define DEBUG |
321 | 2 #include "error.h" |
3 | |
109 | 4 #include <stdlib.h> |
120 | 5 #include <string.h> |
109 | 6 #include "Load_Texture.h" |
120 | 7 #include "texture.h" |
389 | 8 #if !USE_MEMHASH |
167
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
157
diff
changeset
|
9 #include "TileHash.h" |
389 | 10 #endif |
109 | 11 #include "Func.h" |
352 | 12 #include "global_alloc.h" |
109 | 13 |
14 SchedDefineTask(LoadTexture); | |
15 | |
167
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
157
diff
changeset
|
16 /** |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
157
diff
changeset
|
17 * 「Load」といいながら、結局 DrawSpan で使う |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
157
diff
changeset
|
18 * Hash の準備だけなので、名前変えないとなー |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
157
diff
changeset
|
19 */ |
352 | 20 int |
409 | 21 LoadTexture::run(SchedTask *smanager, void *rbuf , void *wbuf) |
109 | 22 { |
321 | 23 __debug_spe("LoadTexture\n"); |
389 | 24 |
380 | 25 MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE); |
26 smanager->global_set(GLOBAL_TILE_LIST, (void *)ml); | |
391 | 27 |
109 | 28 return 0; |
29 } |