Mercurial > hg > Game > Cerium
annotate TaskManager/Test/test_render/polygon.h @ 141:56db76a03294 draft
TileList を作ろうとしたがに動かない。
今はTileList 無しver
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 29 Nov 2008 01:18:32 +0900 |
parents | f35504025f73 |
children | 59f4129a9562 |
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 | |
141 | 18 #ifndef INCLUDED_TEXTURE |
19 # include "texture.h" | |
20 #endif | |
21 | |
137
91c74dbc32e4
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
80d93fe0601d
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; | |
34 int frame; // anime frame num | |
141 | 35 int texture_id; //texture id number |
36 struct texture_list texture_info; | |
37 | |
38 static SDL_Surface* texture_image; // pointer of this surface's texture | |
109 | 39 |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
40 Polygon(void); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
41 |
109 | 42 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); |
43 //void load_texture(char *image_name); | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
44 //void draw(float *stack); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
45 //void draw(SceneGraphPack *sgp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
46 //void draw(PolygonPack *pp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
47 //void draw(SpanPack *sp); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
48 Uint32 get_rgb(int tx, int ty); |
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
49 |
138 | 50 public: |
51 void position_init(void); | |
52 | |
109 | 53 void tree_draw(); |
54 void pickup_coordinate(char *cont); | |
55 void pickup_normal(char *cont); | |
56 void pickup_model(char *cont); | |
57 void pickup_texture(char *cont); | |
137
91c74dbc32e4
SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
123
diff
changeset
|
58 }; |
109 | 59 |
60 #endif |