annotate TaskManager/Test/test_render/polygon.h @ 362:a64a6c34868f

vacuum -sg 15
author e065746@localhost.localdomain
date Fri, 17 Jul 2009 23:02:07 +0900
parents b89ba1d96fff
children 25c820b6060e
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 #ifndef INCLUDED_POLYGON
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_POLYGON
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_VIEWER
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
5 # include "viewer.h"
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
138
3fd24be89d02 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
8 #include <libxml/parser.h>
3fd24be89d02 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
9
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 #ifndef INCLUDED_POLYGON_PACK
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
11 # include "polygon_pack.h"
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 #ifndef INCLUDED_SPAN_PACK
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
15 # include "SpanPack.h"
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17
141
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
18 #ifndef INCLUDED_TEXTURE
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
19 # include "texture.h"
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
20 #endif
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
21
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
22 class Polygon {
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 long long size;
243
52db409f255a rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
25 const char *name;
52db409f255a rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
26 const char *parent_name;
113
6ba88fa28df6 Define New Texture Data Structure
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
27
228
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
28 //float *data; //"vertex" and "normal" and "texture"
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
29 float *coord_xyz; // vertex coordinate array
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
30 float *coord_tex; // texture coordinate array
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
31 float *normal; // normal vector array
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
32 float xyz[4]; // position
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
33 float angle[4]; // angle
c254a2bd1b34 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
34 float c_xyz[4]; // center of rotation
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 float matrix[16];
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 float *anim;
141
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
37 int texture_id; //texture id number
fc314f28b66e TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
38 struct texture_list texture_info;
349
51ffd144f62c fix hash_regist
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 348
diff changeset
39
348
d6338bb6db87 divide func
e065746@localhost.localdomain
parents: 347
diff changeset
40 SDL_Surface* texture_image;
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
42 Polygon(void);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
43
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 //void load_texture(char *image_name);
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
46 //void draw(float *stack);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
47 //void draw(SceneGraphPack *sgp);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
48 //void draw(PolygonPack *pp);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
49 //void draw(SpanPack *sp);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
50 Uint32 get_rgb(int tx, int ty);
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
51
138
3fd24be89d02 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
52 public:
3fd24be89d02 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
53 void position_init(void);
3fd24be89d02 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
54
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
55 void tree_draw();
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
56 void pickup_coordinate(char *cont);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
57 void pickup_normal(char *cont);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
58 void pickup_model(char *cont);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
59 void pickup_texture(char *cont);
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
60 };
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
61
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
62 #endif