comparison Renderer/Engine/polygon.h @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents Renderer/test_render/polygon.h@55ea4465b1a2
children 510424e175ae
comparison
equal deleted inserted replaced
506:1d4a8a86f26b 507:735f76483bb2
1 #ifndef INCLUDED_POLYGON
2 #define INCLUDED_POLYGON
3
4 #include <SDL.h>
5 #include <libxml/parser.h>
6 #include "polygon_pack.h"
7 #include "SpanPack.h"
8 #include "texture.h"
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"
17 float *coord_xyz; // vertex coordinate array
18 float *coord_tex; // texture coordinate array
19 float *normal; // normal vector array
20 float xyz[4]; // position
21 float angle[4]; // angle
22 float c_xyz[4]; // center of rotation
23 float matrix[16];
24 float *anim;
25 int texture_id; //texture id number
26 struct texture_list texture_info;
27
28 SDL_Surface* texture_image;
29
30 Polygon(void);
31
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);
34 //void draw(float *stack);
35 //void draw(SceneGraphPack *sgp);
36 //void draw(PolygonPack *pp);
37 //void draw(SpanPack *sp);
38 Uint32 get_rgb(int tx, int ty);
39
40 public:
41 void position_init(void);
42
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);
48 };
49
50 #endif