Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/SpanC.h @ 174:559b48b69b76
getScale()、getTapestry から、span->length に適切なテクスチャの選択に成功
author | gongo@localhost.localdomain |
---|---|
date | Fri, 12 Dec 2008 12:23:20 +0900 |
parents | 5c194c71eca8 |
children |
line wrap: on
line source
#ifndef INCLUDE_Span #define INCLUDE_Span #include "triangle.h" #include "viewer.h" #include "polygon.h" class Span_c { public: int x,y,end; float z,zpos; float tex1,tex2,tey1,tey2; void create_span(Triangle *tri,SDL_Surface *image); // float calc(float f1, float f2,int i, float base); void half_triangle(Vertex*, Vertex*, Vertex*, SDL_Surface *image); Viewer *viewer; Polygon *p; }; #endif