annotate TaskManager/Test/test_render/polygon.h @ 356:5b995810b86a draft

merge heads
author aaa
date Fri, 17 Jul 2009 15:04:02 +0900
parents cfd20d609ace bd0cc480a60a
children b3fb0013e6b2
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 #ifndef INCLUDED_POLYGON
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_POLYGON
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_VIEWER
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
5 # include "viewer.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
138
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
8 #include <libxml/parser.h>
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
9
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 #ifndef INCLUDED_POLYGON_PACK
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
11 # include "polygon_pack.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 #ifndef INCLUDED_SPAN_PACK
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
15 # include "SpanPack.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17
141
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
18 #ifndef INCLUDED_TEXTURE
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
19 # include "texture.h"
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
20 #endif
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
21
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
22 class Polygon {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 long long size;
243
c4918a1fb6c9 rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
25 const char *name;
c4918a1fb6c9 rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
26 const char *parent_name;
113
80d93fe0601d Define New Texture Data Structure
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
27
228
5bb12a76a335 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"
5bb12a76a335 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
5bb12a76a335 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
5bb12a76a335 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
5bb12a76a335 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
5bb12a76a335 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
5bb12a76a335 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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 float matrix[16];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 float *anim;
141
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
37 int texture_id; //texture id number
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
38 struct texture_list texture_info;
349
bd0cc480a60a fix hash_regist
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 348
diff changeset
39
348
a046c5dac580 divide func
e065746@localhost.localdomain
parents: 347
diff changeset
40 SDL_Surface* texture_image;
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
42 Polygon(void);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
43
109
028ffc9c0375 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);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 //void load_texture(char *image_name);
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
46 //void draw(float *stack);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
47 //void draw(SceneGraphPack *sgp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
48 //void draw(PolygonPack *pp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
49 //void draw(SpanPack *sp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
50 Uint32 get_rgb(int tx, int ty);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
51
138
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
52 public:
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
53 void position_init(void);
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
54
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
55 void tree_draw();
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
56 void pickup_coordinate(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
57 void pickup_normal(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
58 void pickup_model(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
59 void pickup_texture(char *cont);
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
60 };
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
61
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
62 #endif