Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/spe/Load_Texture.cpp @ 173:56be4a6e5513
add scale
author | gongo@localhost.localdomain |
---|---|
date | Thu, 11 Dec 2008 20:17:01 +0900 |
parents | c8b868871dce |
children | 4f5c64e713c7 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/Load_Texture.cpp Thu Dec 11 16:33:39 2008 +0900 +++ b/TaskManager/Test/test_render/spe/Load_Texture.cpp Thu Dec 11 20:17:01 2008 +0900 @@ -18,14 +18,13 @@ * 現在 global_alloc() では new をサポートしてないので * コンストラクタ呼ぶために placement new してます。 */ - void *hash_tmp = smanager->global_alloc(GLOBAL_TEXTURE_HASH, - sizeof(TileHash)); + void *hash_tmp + = smanager->global_alloc(GLOBAL_TEXTURE_HASH, sizeof(TileHash)); TileHashPtr hashtable = new(hash_tmp) TileHash; - TileListPtr tileList - = (TileListPtr)smanager->global_alloc(GLOBAL_TILE_LIST, - sizeof(TileList)); - tileList->init(); + void *tileList_tmp + = smanager->global_alloc(GLOBAL_TILE_LIST, sizeof(TileList)); + TileListPtr tileList = new(tileList_tmp) TileList; return 0; }