Mercurial > hg > Game > Cerium
annotate Renderer/Engine/polygon.h @ 1128:293b36802714 draft
code cleanup
author | Yutaka_Kinjyo |
---|---|
date | Mon, 14 Feb 2011 02:24:28 +0900 |
parents | 6043da6e48f1 |
children | a8bffdb5d2e3 |
rev | line source |
---|---|
283 | 1 #ifndef INCLUDED_POLYGON |
2 #define INCLUDED_POLYGON | |
3 | |
539 | 4 #include <SDL.h> |
283 | 5 #include <libxml/parser.h> |
539 | 6 #include "polygon_pack.h" |
7 #include "SpanPack.h" | |
8 #include "texture.h" | |
283 | 9 |
10 class Polygon { | |
11 public: | |
12 long long size; | |
13 const char *name; | |
14 const char *parent_name; | |
15 | |
16 //float *data; //"vertex" and "normal" and "texture" | |
860 | 17 |
1126
6043da6e48f1
complete compile but not work yet.
yutaka@localhost.localdomain
parents:
1125
diff
changeset
|
18 float matrix[16] __attribute__((aligned(16)));; |
6043da6e48f1
complete compile but not work yet.
yutaka@localhost.localdomain
parents:
1125
diff
changeset
|
19 float real_matrix[16] __attribute__((aligned(16)));; |
6043da6e48f1
complete compile but not work yet.
yutaka@localhost.localdomain
parents:
1125
diff
changeset
|
20 texture_list texture_info __attribute__((aligned(16)));; |
860 | 21 |
1125 | 22 PolygonPackPtr pp; |
23 int pp_num; | |
24 | |
283 | 25 float xyz[4]; // position |
26 float angle[4]; // angle | |
27 float c_xyz[4]; // center of rotation | |
28 float *anim; | |
1050 | 29 float scale[3]; |
539 | 30 |
283 | 31 Polygon(void); |
32 | |
33 void parameter_change(char *name, float x, float y, float z, float ax, float ay, float az); | |
34 //void load_texture(char *image_name); | |
35 //void draw(float *stack); | |
36 //void draw(SceneGraphPack *sgp); | |
37 //void draw(PolygonPack *pp); | |
38 //void draw(SpanPack *sp); | |
39 Uint32 get_rgb(int tx, int ty); | |
40 | |
41 public: | |
42 void position_init(void); | |
43 | |
44 void tree_draw(); | |
45 void pickup_coordinate(char *cont); | |
46 void pickup_normal(char *cont); | |
47 void pickup_model(char *cont); | |
48 void pickup_texture(char *cont); | |
49 }; | |
50 | |
51 #endif |