Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/task/Load_Texture.cpp @ 403:e2f29e912d0b draft
clean up and add more info on task_list
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 23 Sep 2009 12:04:29 +0900 |
parents | 492e60453124 |
children |
line wrap: on
line source
#include <stdlib.h> #include <string.h> #include "Load_Texture.h" #include "texture.h" #if !USE_MEMHASH #include "TileHash.h" #endif #include "Func.h" #include "global_alloc.h" #include "Tapestry.h" SchedDefineTask(LoadTexture); /** * 「Load」といいながら、結局 DrawSpan で使う * Hash の準備だけなので、名前変えないとなー */ int LoadTexture::run(SchedTask *smanager, void *rbuf , void *wbuf) { MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE); smanager->global_set(GLOBAL_TILE_LIST, (void *)ml); return 0; }