annotate TaskManager/Test/test_render/spe/Load_Texture.cpp @ 167:c8b868871dce

DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
author gongo@localhost.localdomain
date Tue, 09 Dec 2008 15:07:31 +0900
parents 8e22fd25befb
children 56be4a6e5513
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include <stdlib.h>
120
a52e193f9a42 fix Load Texture
gongo@gendarme.local
parents: 109
diff changeset
2 #include <string.h>
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "Load_Texture.h"
120
a52e193f9a42 fix Load Texture
gongo@gendarme.local
parents: 109
diff changeset
4 #include "texture.h"
167
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
5 #include "TileHash.h"
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #include "Func.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 SchedDefineTask(LoadTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
167
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
10 /**
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
11 * 「Load」といいながら、結局 DrawSpan で使う
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
12 * Hash の準備だけなので、名前変えないとなー
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
13 */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 int
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 LoadTexture::run(void *rbuf , void *wbuf)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 {
167
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
17 /**
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
18 * 現在 global_alloc() では new をサポートしてないので
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
19 * コンストラクタ呼ぶために placement new してます。
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
20 */
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
21 void *hash_tmp = smanager->global_alloc(GLOBAL_TEXTURE_HASH,
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
22 sizeof(TileHash));
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
23 TileHashPtr hashtable = new(hash_tmp) TileHash;
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
24
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
25 TileListPtr tileList
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
26 = (TileListPtr)smanager->global_alloc(GLOBAL_TILE_LIST,
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
27 sizeof(TileList));
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
28 tileList->init();
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
29
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 return 0;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31 }