Mercurial > hg > Game > Cerium
view TaskManager/Test/simple_render/polygon_pack.h @ 26:3f68b2ef4fb0
*** empty log message ***
author | gongo |
---|---|
date | Sun, 10 Feb 2008 18:31:48 +0900 |
parents | |
children | 9b96b190cb73 |
line wrap: on
line source
#ifndef INCLUDED_POLYGON_PACK #define INCLUDED_POLYGON_PACK typedef struct TrianglePack { long tex_addr, tex_width, tex_height; float x1, y1, z1, tex_x1, tex_y1; float x2, y2, z2, tex_x2, tex_y2; float x3, y3, z3, tex_x3, tex_y3; } TrianglePack; typedef struct PolygonInfo{ int size; float light_pos[3]; float light_rgb[3]; }PolygonInfo; typedef struct PolygonPack { PolygonInfo info; TrianglePack tri[128]; // Variable length array } PolygonPack; #endif