Mercurial > hg > Game > Cerium
view Renderer/Engine/spe/Load_Texture.cc @ 1161:cc1a50cac83d draft
use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author | Yutaka_Kinjyo |
---|---|
date | Thu, 05 May 2011 00:15:43 +0900 |
parents | ad2bc8afc7b9 |
children |
line wrap: on
line source
// #define DEBUG #include "error.h" #include <stdlib.h> #include <string.h> #include "Load_Texture.h" #include "task_texture.h" #include "Func.h" SchedDefineTask(LoadTexture); /** * 「Load」といいながら、結局 DrawSpan で使う * Hash の準備だけなので、名前変えないとなー */ static int run(SchedTask *smanager, void *rbuf , void *wbuf) { __debug_spe("LoadTexture\n"); MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE); smanager->global_set(GLOBAL_TILE_LIST, (void *)ml); // smanager->printf("%d\n",GLOBAL_TILE_LIST); return 0; }