Mercurial > hg > Members > e085722 > Cerium
diff Renderer/Engine/task/Load_Texture.cc @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/task/Load_Texture.cc Mon Nov 08 01:23:25 2010 +0900 @@ -0,0 +1,21 @@ +#include <stdlib.h> +#include <string.h> +#include "Load_Texture.h" +#include "task_texture.h" +#include "Func.h" +#include "Tapestry.h" + +SchedDefineTask(LoadTexture); + +/** + * 「Load」といいながら、結局 DrawSpan で使う + * Hash の準備だけなので、名前変えないとなー + */ +static int +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; +}