1 |
bearsoft |
1.1 |
#ifndef __TMapare_H__
|
2 |
|
|
#define __TMapare_H__
|
3 |
|
|
|
4 |
|
|
#include "TPolytri.h"
|
5 |
|
|
|
6 |
|
|
class TMapare
|
7 |
|
|
{
|
8 |
|
|
|
9 |
|
|
public:
|
10 |
|
|
|
11 |
|
|
TMapare(int *iscreen, int iscreenwidth, int iscreenheight);
|
12 |
|
|
~TMapare();
|
13 |
|
|
|
14 |
|
|
void drawtpolyperspsubtriseg(int y1, int y2);
|
15 |
|
|
void drawtpolyperspsubtri(TPolytri *poly);
|
16 |
|
|
|
17 |
|
|
private:
|
18 |
|
|
float dizdx, duizdx, dvizdx, dizdy, duizdy, dvizdy;
|
19 |
|
|
float xa, xb, iza, uiza, viza;
|
20 |
|
|
float dxdya, dxdyb, dizdya, duizdya, dvizdya;
|
21 |
|
|
int *texture;
|
22 |
|
|
int *screen;
|
23 |
|
|
int screenwidth;
|
24 |
|
|
int screenheight;
|
25 |
|
|
|
26 |
|
|
};
|
27 |
|
|
|
28 |
|
|
#endif
|