Mercurial > hg > Game > Cerium
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 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_POLYGON |
2 #define INCLUDED_POLYGON | |
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 | 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 | 9 |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
10 class Polygon { |
109 | 11 public: |
12 long long size; | |
243 | 13 const char *name; |
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 | 23 float matrix[16]; |
24 float *anim; | |
141 | 25 int texture_id; //texture id number |
26 struct texture_list texture_info; | |
349 | 27 |
348 | 28 SDL_Surface* texture_image; |
109 | 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 | 32 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); |
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 | 40 public: |
41 void position_init(void); | |
42 | |
109 | 43 void tree_draw(); |
44 void pickup_coordinate(char *cont); | |
45 void pickup_normal(char *cont); | |
46 void pickup_model(char *cont); | |
47 void pickup_texture(char *cont); | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
48 }; |
109 | 49 |
50 #endif |