00001 #ifndef INCLUDE_Span 00002 #define INCLUDE_Span 00003 00004 #include "triangle.h" 00005 #include "viewer.h" 00006 #include "polygon.h" 00007 00008 class Span_c { 00009 public: 00010 int x,y,end; 00011 float z,zpos; 00012 float tex1,tex2,tey1,tey2; 00013 void create_span(Triangle *tri,SDL_Surface *image); 00014 // float calc(float f1, float f2,int i, float base); 00015 void half_triangle(Vertex*, Vertex*, Vertex*, SDL_Surface *image); 00016 Viewer *viewer; 00017 Polygon *p; 00018 }; 00019 00020 #endif