Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/spe/Load_Texture.cpp @ 321:f64d75473f95
merge 317
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Jun 2009 15:23:25 +0900 |
parents | 7efc5ede2c03 |
children | 4be5ae77e02c |
line wrap: on
line source
#define DEBUG #include "error.h" #include <stdlib.h> #include <string.h> #include "Load_Texture.h" #include "texture.h" #include "TileHash.h" #include "Func.h" SchedDefineTask(LoadTexture); /** * 「Load」といいながら、結局 DrawSpan で使う * Hash の準備だけなので、名前変えないとなー */ int LoadTexture::run(void *rbuf , void *wbuf) { __debug_spe("LoadTexture\n"); /** * 現在 global_alloc() では new をサポートしてないので * コンストラクタ呼ぶために placement new してます。 */ void *hash_tmp = smanager->global_alloc(GLOBAL_TEXTURE_HASH, sizeof(TileHash)); new(hash_tmp) TileHash; void *tileList_tmp = smanager->global_alloc(GLOBAL_TILE_LIST, sizeof(TileList)); new(tileList_tmp) TileList; return 0; }