| 1 |
bearsoft |
1.1 |
#ifndef __Engine3d_H__
|
| 2 |
|
|
#define __Engine3d_H__
|
| 3 |
|
|
|
| 4 |
|
|
#include "TMapare.h"
|
| 5 |
|
|
#include "TPolytri.h"
|
| 6 |
|
|
#include "LwoLoader.h"
|
| 7 |
|
|
#include "Object3d.h"
|
| 8 |
|
|
#include "Clipping3d.h"
|
| 9 |
|
|
#include "Rotations.h"
|
| 10 |
|
|
#include "../ImageFormat/SGI.h"
|
| 11 |
|
|
#include "../LinkedList/ObjectLinkedList.h"
|
| 12 |
|
|
|
| 13 |
|
|
class Engine3d
|
| 14 |
|
|
{
|
| 15 |
|
|
|
| 16 |
|
|
public:
|
| 17 |
|
|
|
| 18 |
|
|
Engine3d(int *ichunkybuffer, int iscreenwidth, int iscreenheight);
|
| 19 |
|
|
~Engine3d();
|
| 20 |
|
|
|
| 21 |
|
|
void init();
|
| 22 |
|
|
void run(float speed, float mousex, float mousey, float mousez );
|
| 23 |
|
|
|
| 24 |
|
|
private:
|
| 25 |
|
|
void draw_polygons(Object3d *objekt3d_, TPolytri *TPolytri_, TMapare *tmapare_, Clipping3d *clipping3d_);
|
| 26 |
|
|
void clearchunkybuffer(int *chunkybuffer, int screenwidth, int screenheight);
|
| 27 |
|
|
|
| 28 |
|
|
TMapare *tmapare_;
|
| 29 |
|
|
TPolytri *TPolytri_;
|
| 30 |
|
|
Object3d *objekt3d_[1];
|
| 31 |
|
|
Object3dList *objekt3dlist_[1];
|
| 32 |
|
|
ObjectLinkedList<SGI> *textureList;
|
| 33 |
|
|
Clipping3d *clipping3d_[1];
|
| 34 |
|
|
LwoLoader *lwoLoader[1];
|
| 35 |
|
|
int screenwidth;
|
| 36 |
|
|
int screenheight;
|
| 37 |
|
|
int *chunkybuffer;
|
| 38 |
|
|
float zc;
|
| 39 |
|
|
float zc2;
|
| 40 |
|
|
SGI *sgi;
|
| 41 |
|
|
|
| 42 |
|
|
};
|
| 43 |
|
|
|
| 44 |
|
|
#endif
|