Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/spe/Load_Texture.cpp @ 194:72dcf908ec52
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 20 Jan 2009 14:50:41 +0900 |
parents | 4f5c64e713c7 |
children | 52db409f255a |
line wrap: on
line source
#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) { /** * 現在 global_alloc() では new をサポートしてないので * コンストラクタ呼ぶために placement new してます。 */ void *hash_tmp = smanager->global_alloc(GLOBAL_TEXTURE_HASH, sizeof(TileHash)); TileHashPtr hashtable = new(hash_tmp) TileHash; void *tileList_tmp = smanager->global_alloc(GLOBAL_TILE_LIST, sizeof(TileList)); TileListPtr tileList = new(tileList_tmp) TileList; return 0; }