Mercurial > hg > Game > Cerium
annotate TaskManager/Test/test_render/polygon.h @ 138:f35504025f73 draft
オブジェクトを増やして複数の表示に成功。
TODO:オブジェクトの削除
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 28 Nov 2008 12:16:24 +0900 |
parents | 91c74dbc32e4 |
children | 56db76a03294 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_POLYGON |
2 #define INCLUDED_POLYGON | |
3 | |
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 | 6 #endif |
7 | |
138 | 8 #include <libxml/parser.h> |
9 | |
109 | 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 | 12 #endif |
13 | |
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 | 16 #endif |
17 | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
18 class Polygon { |
109 | 19 public: |
20 long long size; | |
21 char *name; | |
22 char *parent_name; | |
113
80d93fe0601d
Define New Texture Data Structure
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
109
diff
changeset
|
23 |
109 | 24 float *data; //"vertex" and "normal" and "texture" |
25 float xyz[4]; // position | |
26 float angle[4]; // angle | |
27 float c_xyz[4]; // center of rotation | |
28 float matrix[16]; | |
29 float *anim; | |
30 int frame; // anime frame num | |
31 //int *texture; // pointer of this surface's texture | |
32 static SDL_Surface* texture_image; // pointer of this surface's texture | |
33 | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
34 Polygon(void); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
35 |
109 | 36 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); |
37 //void load_texture(char *image_name); | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
38 //void draw(float *stack); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
39 //void draw(SceneGraphPack *sgp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
40 //void draw(PolygonPack *pp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
41 //void draw(SpanPack *sp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
42 Uint32 get_rgb(int tx, int ty); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
43 |
138 | 44 public: |
45 void position_init(void); | |
46 | |
109 | 47 void tree_draw(); |
48 void pickup_coordinate(char *cont); | |
49 void pickup_normal(char *cont); | |
50 void pickup_model(char *cont); | |
51 void pickup_texture(char *cont); | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
52 }; |
109 | 53 |
54 #endif |