room101/SURFACE.HPP

24 lines
454 B
Text
Raw Normal View History

#ifndef __SURFACE_H
#define __SURFACE_H
#include "triangle.hpp"
typedef struct
{
Matrix matrix;
Triangle PMN;
Plane plane;
Vector lo;
Vector hi;
int width;
int height;
int colour;
} Surface;
void SurfaceCreate(Surface*, Vector[], int, int, float, float);
void SurfaceRead(Surface*, FILE*);
void SurfaceWrite(Surface*, FILE*);
Surface* SurfaceArrayRead(FILE*);
#endif