| 1 |
#include "Object3d.h"
|
| 2 |
|
| 3 |
Object3d::Object3d(int inumberofvertices, int inumberofpolys, int inumberofpoints, int ivisible, int ilightobject, int itotalnumberoftextures )
|
| 4 |
{
|
| 5 |
|
| 6 |
numberofvertices=inumberofvertices;
|
| 7 |
numberofpolys=inumberofpolys;
|
| 8 |
numberofpoints=inumberofpoints;
|
| 9 |
|
| 10 |
x = new float[numberofvertices*4];
|
| 11 |
y = new float[numberofvertices*4];
|
| 12 |
z = new float[numberofvertices*4];
|
| 13 |
ix = new float[numberofvertices*4];
|
| 14 |
iy = new float[numberofvertices*4];
|
| 15 |
iz = new float[numberofvertices*4];
|
| 16 |
vx = new float[numberofvertices*4];
|
| 17 |
vy = new float[numberofvertices*4];
|
| 18 |
vz = new float[numberofvertices*4];
|
| 19 |
vnx = new float[numberofpolys*4];
|
| 20 |
vny = new float[numberofpolys*4];
|
| 21 |
vnz = new float[numberofpolys*4];
|
| 22 |
gouraud = new float[numberofvertices*4];
|
| 23 |
points = new int[numberofpolys*3*4];
|
| 24 |
tpoints = new int[numberofpolys*3*4];
|
| 25 |
vu = new float[numberofpolys*3*4];
|
| 26 |
vv = new float[numberofpolys*3*4];
|
| 27 |
texturep = new int[itotalnumberoftextures*4];
|
| 28 |
visible = ivisible;
|
| 29 |
lightobject=ilightobject;
|
| 30 |
transparent = new float[numberofpolys*4];
|
| 31 |
colour = new int[numberofpolys*4];
|
| 32 |
visiblypolys = new int[numberofpolys*4];
|
| 33 |
visiblyvertices = new int[numberofvertices*4];
|
| 34 |
|
| 35 |
}
|
| 36 |
|
| 37 |
Object3d::~Object3d(){}
|
| 38 |
|