annotate TaskManager/Test/test_render/polygon.h @ 449:0bed2a9889f5 draft

get_segment fixed. and test_nogl rollback to 426. move!
author kazz@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 25 Sep 2009 18:06:01 +0900
parents efe8584a7b5a
children 574be19530a5
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
449
0bed2a9889f5 get_segment fixed. and test_nogl rollback to 426. move!
kazz@henri.cr.ie.u-ryukyu.ac.jp
parents: 445
diff changeset
4 #include "viewer.h"
138
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
5 #include <libxml/parser.h>
383
b3fb0013e6b2 fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 356
diff changeset
6 #include "polygon_pack.h"
b3fb0013e6b2 fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 356
diff changeset
7 #include "SpanPack.h"
b3fb0013e6b2 fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 356
diff changeset
8 #include "texture.h"
141
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
9
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
10 class Polygon {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 long long size;
243
c4918a1fb6c9 rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
13 const char *name;
c4918a1fb6c9 rm warning
e065746@localhost.localdomain
parents: 228
diff changeset
14 const char *parent_name;
113
80d93fe0601d Define New Texture Data Structure
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
15
228
5bb12a76a335 remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 215
diff changeset
16 //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
17 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
18 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
19 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
20 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
21 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
22 float c_xyz[4]; // center of rotation
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 float matrix[16];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 float *anim;
141
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
25 int texture_id; //texture id number
56db76a03294 TileList を作ろうとしたがに動かない。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 138
diff changeset
26 struct texture_list texture_info;
349
bd0cc480a60a fix hash_regist
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 348
diff changeset
27
348
a046c5dac580 divide func
e065746@localhost.localdomain
parents: 347
diff changeset
28 SDL_Surface* texture_image;
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
30 Polygon(void);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
31
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 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
33 //void load_texture(char *image_name);
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
34 //void draw(float *stack);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
35 //void draw(SceneGraphPack *sgp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
36 //void draw(PolygonPack *pp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
37 //void draw(SpanPack *sp);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
38 Uint32 get_rgb(int tx, int ty);
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
39
138
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
40 public:
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
41 void position_init(void);
f35504025f73 オブジェクトを増やして複数の表示に成功。
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
42
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43 void tree_draw();
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 void pickup_coordinate(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 void pickup_normal(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46 void pickup_model(char *cont);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
47 void pickup_texture(char *cont);
137
91c74dbc32e4 SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 123
diff changeset
48 };
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50 #endif