annotate old/simple_render/SpanC.h @ 1616:05d449e7b9f8 draft

remove set_NDRange
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 14 May 2013 13:40:50 +0900
parents 3bc98f6d31ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDE_Span
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDE_Span
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #include "triangle.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 #include "viewer.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #include "polygon.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 class Span_c {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 int x,y,end;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 float z,zpos;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 float tex1,tex2,tey1,tey2;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 void create_span(Triangle *tri,SDL_Surface *image);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 // float calc(float f1, float f2,int i, float base);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 void half_triangle(Vertex*, Vertex*, Vertex*, SDL_Surface *image);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 Viewer *viewer;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 Polygon *p;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 };
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 #endif