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