annotate Renderer/Engine/SpanC.h @ 1319:31455d34e502 draft

collada file reader minor changes.
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Sun, 18 Dec 2011 09:39:14 +0900
parents 3bc98f6d31ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDE_Span
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDE_Span
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 #include "triangle.h"
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 #include "viewer.h"
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 #include "polygon.h"
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 class Span_c {
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 public:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 int x,y,end;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 float z,zpos;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 float tex1,tex2,tey1,tey2;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 void create_span(Triangle *tri,SDL_Surface *image);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 // float calc(float f1, float f2,int i, float base);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 void half_triangle(Vertex*, Vertex*, Vertex*, SDL_Surface *image);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 Viewer *viewer;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 Polygon *p;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 #endif