539
|
1 // #define DEBUG
|
|
2 #include "error.h"
|
|
3
|
|
4 #include <stdlib.h>
|
|
5 #include <string.h>
|
|
6 #include "Load_Texture.h"
|
860
|
7 #include "task_texture.h"
|
539
|
8 #include "Func.h"
|
|
9
|
|
10 SchedDefineTask(LoadTexture);
|
|
11
|
|
12 /**
|
|
13 * 「Load」といいながら、結局 DrawSpan で使う
|
|
14 * Hash の準備だけなので、名前変えないとなー
|
|
15 */
|
|
16 static int
|
|
17 run(SchedTask *smanager, void *rbuf , void *wbuf)
|
|
18 {
|
|
19 __debug_spe("LoadTexture\n");
|
|
20
|
|
21 MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE);
|
|
22 smanager->global_set(GLOBAL_TILE_LIST, (void *)ml);
|
|
23
|
792
|
24 smanager->printf("%d\n",GLOBAL_TILE_LIST);
|
|
25
|
539
|
26 return 0;
|
|
27 }
|