Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/simple_pack/polygon_pack.h @ 68:35a6cf176c38
*** empty log message ***
author | chiaki |
---|---|
date | Sun, 17 Feb 2008 21:45:07 +0900 |
parents | 0c8ae614d421 |
children | cf36120bc158 |
comparison
equal
deleted
inserted
replaced
67:7d2874fb0671 | 68:35a6cf176c38 |
---|---|
1 #ifndef INCLUDED_POLYGON_PACK | 1 #ifndef INCLUDED_POLYGON_PACK |
2 #define INCLUDED_POLYGON_PACK | 2 #define INCLUDED_POLYGON_PACK |
3 | 3 |
4 | |
5 typedef struct VertexPack { | |
6 float x; | |
7 float y; | |
8 float z; | |
9 float tex_x; | |
10 float tex_y; | |
11 }VertexPack, *VertexPack_ptr; | |
12 | |
13 | |
4 typedef struct TrianglePack { | 14 typedef struct TrianglePack { |
5 long tex_addr, tex_width, tex_height; | 15 long *tex_addr, tex_width, tex_height; |
6 float x1, y1, z1, tex_x1, tex_y1; | 16 VertexPack ver1; |
7 float x2, y2, z2, tex_x2, tex_y2; | 17 VertexPack ver2; |
8 float x3, y3, z3, tex_x3, tex_y3; | 18 VertexPack ver3; |
9 } TrianglePack; | 19 } TrianglePack; |
10 | 20 |
11 typedef struct PolygonInfo{ | |
12 int size; | |
13 float light_pos[3]; | |
14 float light_rgb[3]; | |
15 }PolygonInfo; | |
16 | 21 |
17 typedef struct PolygonPack { | 22 typedef struct PolygonPack { |
18 PolygonInfo info; | 23 struct PORIGON_info { |
24 int size; | |
25 int light_pos[3]; | |
26 int light_rgb[3]; | |
27 }info; | |
19 TrianglePack tri[128]; // Variable length array | 28 TrianglePack tri[128]; // Variable length array |
20 } PolygonPack; | 29 } PolygonPack, *PolygonPackPtr; |
30 | |
31 typedef struct PolygonPackList { | |
32 int size; | |
33 //PolygonPack *list[6]; | |
34 PolygonPack *list; | |
35 } PolygonPackList; | |
21 | 36 |
22 #endif | 37 #endif |