view TaskManager/Test/simple_render/polygon_pack.h @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 028ffc9c0375
children
line wrap: on
line source

#ifndef INCLUDED_POLYGON_PACK
#define INCLUDED_POLYGON_PACK

#ifndef INCLUDED_SPAN_PACK
#include "SpuSpan.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;
    SpuSpan *ssl;
    TrianglePack tri[128];    // Variable length array
} PolygonPack, *PolygonPackPtr;

typedef struct PolygonPackList {
    int size;
    //PolygonPack *list[6];
    PolygonPack *list;
} PolygonPackList;

#endif