2024-04-16 03:43:29 +00:00
|
|
|
#ifndef __SOFTWARE_INTERNAL_H__
|
|
|
|
#define __SOFTWARE_INTERNAL_H__
|
|
|
|
|
|
|
|
#include "pserror.h"
|
|
|
|
|
|
|
|
#define MAX_POINTS_IN_POLY 100
|
|
|
|
|
|
|
|
void FreeTempPoint(g3Point *p);
|
|
|
|
void InitFreePoints(void);
|
2024-04-16 18:56:40 +00:00
|
|
|
void ClipLine(g3Point **p0, g3Point **p1, ubyte codes_or);
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
// Verify that all the temp points are free, and free them it they are not.
|
2024-04-16 03:43:29 +00:00
|
|
|
#ifdef _DEBUG
|
|
|
|
void CheckTempPoints();
|
|
|
|
#else
|
|
|
|
#define CheckTempPoints()
|
|
|
|
#endif
|
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
extern int Window_width, Window_height; // the actual integer width & height
|
|
|
|
extern float Window_w2, Window_h2; // width,height/2
|
2024-04-16 03:43:29 +00:00
|
|
|
extern float View_zoom;
|
2024-04-16 18:56:40 +00:00
|
|
|
extern vector View_position, Matrix_scale;
|
|
|
|
extern matrix View_matrix, Unscaled_matrix;
|
2024-04-16 03:43:29 +00:00
|
|
|
extern float Far_clip_z;
|
|
|
|
|
|
|
|
// For custom clipping plane
|
|
|
|
extern ubyte Clip_custom;
|
|
|
|
extern float Clip_plane_distance;
|
|
|
|
extern vector Clip_plane;
|
|
|
|
|
|
|
|
extern float gTransformViewPort[4][4];
|
|
|
|
extern float gTransformProjection[4][4];
|
|
|
|
extern float gTransformModelView[4][4];
|
|
|
|
extern float gTransformFull[4][4];
|
|
|
|
void g3_UpdateFullTransform();
|
|
|
|
|
|
|
|
#endif
|