/[cvs]/api/Classes/Engine3d/Clipping3d.h
ViewVC logotype

Contents of /api/Classes/Engine3d/Clipping3d.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sun Jul 1 20:47:58 2001 UTC (23 years, 4 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 #ifndef __Clipping3d_H__
2 #define __Clipping3d_H__
3
4 #include "TMapareData.h"
5 #include "TPolytri.h"
6 #include "Object3d.h"
7 #include "../Array/ObjectArray.h"
8
9 class Clipping3d
10 {
11
12 public:
13
14 Clipping3d(int iscreenWidth, int iscreenHeight, float iZNear, float iZFar);
15 ~Clipping3d();
16 int removePolygon2d(TPolytri *tPolytri);
17 bool getClippedData(TPolytri *tPolytri, int step);
18 void clipPolygonAgainst6Planes(Object3d *object3d, int step);
19 void clearSetCliped(ObjectArray<TMapareData> *tMapareDataList);
20 void calcPlane(int screenWidth, int screenHeight);
21 void removePolygon(ObjectArray<TMapareData> *tMapareDataList);
22 int removePolygon(TMapareData *tMapareData);
23 int removePolygonXY(TMapareData *tMapareData);
24 void clipXY(ObjectArray<TMapareData> *tMapareDataList, int screenwidth, int pc);
25 void interpolateClipXY(TMapareData *tMapareData, float f , int k, int n, int *position, float x);
26 int newPolygonClipXY(ObjectArray<TMapareData> *tMapareDataList, int e);
27 void copyPolygonPointClipXY(TMapareData *tMapareData, TMapareData *tMapareData2, int i, int i2);
28 void clipZ(ObjectArray<TMapareData> *tMapareData , float zNearOrFar, int pc , int choise);
29 void calcClipZ(ObjectArray<TMapareData> *tMapareData, float zNearOrFar, int pc , int k, int n, int *position, float tempzc);
30 int newPolygonClipZ(ObjectArray<TMapareData> *tMapareDataList, int e );
31 float interpolateClipZ(float temp, float temp2, float d7f);
32 void copyPolygonPointClipZ(TMapareData *tMapareData, TMapareData *tMapareData2, int i, int i2);
33 float xpangs;
34 float xpangc;
35 float ypangs;
36 float ypangc;
37 float planex;
38 float planey;
39 float planez;
40 float planedist;
41 int screenWidth,screenHeight;
42 int numberOfPolygons;
43 ObjectArray<TMapareData> *tMapareDataList;
44 float zNear;
45 float zFar;
46
47 private:
48 };
49
50 #endif

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26