annotate 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
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 */
173
56be4a6e5513 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
21 void *hash_tmp
56be4a6e5513 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
22 = smanager->global_alloc(GLOBAL_TEXTURE_HASH, sizeof(TileHash));
167
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
173
56be4a6e5513 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
25 void *tileList_tmp
56be4a6e5513 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
26 = smanager->global_alloc(GLOBAL_TILE_LIST, sizeof(TileList));
56be4a6e5513 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
27 TileListPtr tileList = new(tileList_tmp) TileList;
167
c8b868871dce DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
28
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 return 0;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 }