annotate TaskManager/Test/test_render/task/Load_Texture.cpp @ 238:443c7ae1c7a7 draft

warning clean
author admin@mcbk.cr.ie.u-ryukyu.ac.jp
date Fri, 29 May 2009 13:43:52 +0900
parents 1e62bd02f820
children 9738837c225c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include <stdlib.h>
120
13b43de5ef5d fix Load Texture
gongo@gendarme.local
parents: 109
diff changeset
2 #include <string.h>
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "Load_Texture.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #include "texture.h"
167
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
5 #include "TileHash.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #include "Func.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 SchedDefineTask(LoadTexture);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
167
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
10 /**
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
11 * 「Load」といいながら、結局 DrawSpan で使う
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
12 * Hash の準備だけなので、名前変えないとなー
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
13 */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 int
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 LoadTexture::run(void *rbuf , void *wbuf)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 {
167
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
17 /**
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
18 * 現在 global_alloc() では new をサポートしてないので
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
19 * コンストラクタ呼ぶために placement new してます。
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
20 */
173
1e62bd02f820 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
21 void *hash_tmp
1e62bd02f820 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
22 = smanager->global_alloc(GLOBAL_TEXTURE_HASH, sizeof(TileHash));
238
443c7ae1c7a7 warning clean
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 173
diff changeset
23 new(hash_tmp) TileHash;
167
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
24
173
1e62bd02f820 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
25 void *tileList_tmp
1e62bd02f820 add scale
gongo@localhost.localdomain
parents: 167
diff changeset
26 = smanager->global_alloc(GLOBAL_TILE_LIST, sizeof(TileList));
238
443c7ae1c7a7 warning clean
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 173
diff changeset
27 new(tileList_tmp) TileList;
167
508beb59e0eb DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents: 157
diff changeset
28
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 return 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 }