Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/polygon.h @ 224:ebfb9e389716
SceneGraph.cpp xmlcreate
author | tkaito@nw0534.st.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 10 Feb 2009 20:45:51 +0900 |
parents | 7ca6a2ef5be9 |
children | c254a2bd1b34 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_POLYGON |
2 #define INCLUDED_POLYGON | |
3 | |
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 | 6 #endif |
7 | |
138 | 8 #include <libxml/parser.h> |
9 | |
109 | 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 | 12 #endif |
13 | |
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 | 16 #endif |
17 | |
141 | 18 #ifndef INCLUDED_TEXTURE |
19 # include "texture.h" | |
20 #endif | |
21 | |
137
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
22 class Polygon { |
109 | 23 public: |
24 long long size; | |
25 char *name; | |
26 char *parent_name; | |
113
6ba88fa28df6
Define New Texture Data Structure
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
109
diff
changeset
|
27 |
109 | 28 float *data; //"vertex" and "normal" and "texture" |
29 float xyz[4]; // position | |
30 float angle[4]; // angle | |
31 float c_xyz[4]; // center of rotation | |
32 float matrix[16]; | |
33 float *anim; | |
141 | 34 int texture_id; //texture id number |
35 struct texture_list texture_info; | |
36 | |
37 static SDL_Surface* texture_image; // pointer of this surface's texture | |
109 | 38 |
137
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
39 Polygon(void); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
40 |
109 | 41 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); |
42 //void load_texture(char *image_name); | |
137
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
43 //void draw(float *stack); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
44 //void draw(SceneGraphPack *sgp); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
45 //void draw(PolygonPack *pp); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
46 //void draw(SpanPack *sp); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
47 Uint32 get_rgb(int tx, int ty); |
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
48 |
138 | 49 public: |
50 void position_init(void); | |
51 | |
109 | 52 void tree_draw(); |
53 void pickup_coordinate(char *cont); | |
54 void pickup_normal(char *cont); | |
55 void pickup_model(char *cont); | |
56 void pickup_texture(char *cont); | |
137
6cf991f28c6c
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
57 }; |
109 | 58 |
59 #endif |