Mercurial > hg > Game > Cerium
view old/simple_pack/polygon_pack.h @ 1188:ad64e2b20a9f draft
Merge with 26dea600d4cd3d5bc2064c29ea4f364bb824b994
author | Daichi TOMA |
---|---|
date | Thu, 07 Jul 2011 13:50:56 +0900 |
parents | 3bc98f6d31ff |
children |
line wrap: on
line source
#ifndef INCLUDED_POLYGON_PACK #define INCLUDED_POLYGON_PACK #ifndef INCLUDED_SPU_SPAN #include "spu_span.h" #endif typedef struct VertexPack { float x; float y; float z; float tex_x; float tex_y; }VertexPack, *VertexPack_ptr; typedef struct TrianglePack { long *tex_addr, tex_width, tex_height; VertexPack ver1; VertexPack ver2; VertexPack ver3; } TrianglePack; typedef struct PolygonPack { struct PORIGON_info { int size; int light_pos[3]; int light_rgb[3]; }info; //SPANPACKLIST *spl; SPUSPANLIST *ssl; TrianglePack tri[128]; // Variable length array } PolygonPack, *PolygonPackPtr; typedef struct PolygonPackList { int size; //PolygonPack *list[6]; PolygonPack *list; } PolygonPackList; #endif