26
|
1 #ifndef INCLUDED_POLYGON_PACK
|
|
2 #define INCLUDED_POLYGON_PACK
|
|
3
|
109
|
4 #ifndef INCLUDED_SPAN_PACK
|
|
5 #include "SpuSpan.h"
|
85
|
6 #endif
|
|
7
|
|
8 typedef struct VertexPack {
|
109
|
9 float x;
|
|
10 float y;
|
|
11 float z;
|
|
12 float tex_x;
|
|
13 float tex_y;
|
85
|
14 }VertexPack, *VertexPack_ptr;
|
|
15
|
|
16
|
26
|
17 typedef struct TrianglePack {
|
109
|
18 long *tex_addr, tex_width, tex_height;
|
|
19 VertexPack ver1;
|
|
20 VertexPack ver2;
|
|
21 VertexPack ver3;
|
85
|
22 } TrianglePack;
|
26
|
23
|
|
24
|
|
25 typedef struct PolygonPack {
|
109
|
26 struct PORIGON_info {
|
|
27 int size;
|
|
28 int light_pos[3];
|
|
29 int light_rgb[3];
|
|
30 }info;
|
|
31 SpuSpan *ssl;
|
|
32 TrianglePack tri[128]; // Variable length array
|
85
|
33 } PolygonPack, *PolygonPackPtr;
|
|
34
|
|
35 typedef struct PolygonPackList {
|
109
|
36 int size;
|
|
37 //PolygonPack *list[6];
|
|
38 PolygonPack *list;
|
85
|
39 } PolygonPackList;
|
26
|
40
|
|
41 #endif
|