mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
#ifndef RASTER_H
|
|
#define RASTER_H
|
|
|
|
typedef enum { POLY_POINT, POLY_LINE, POLY_FILL } PolygonFaceModeType;
|
|
typedef enum { CULL_FRONT, CULL_BACK, CULL_FRONT_AND_BACK } CullFaceModeType;
|
|
|
|
typedef struct {
|
|
char acDummy1[16];
|
|
GLfloat fPointSize; // GL_POINT_SIZE
|
|
BOOL bPointSmooth; // GL_POINT_SMOOTH
|
|
|
|
GLfloat fLineWidth; // GL_LINE_WIDTH
|
|
BOOL bLineSmooth; // GL_LINE_SMOOTH
|
|
GLushort usLineStipple; // GL_LINE_STIPPLE_PATTERN
|
|
int iLineStippleRepeat; // GL_LINE_STIPPLE_REPEAT
|
|
BOOL bLineStippleEnable; // GL_LINE_STIPPLE
|
|
|
|
BOOL bPolyCullFaceEnable; // GL_CULL_FACE
|
|
int iPolyCullMode; // GL_CULL_FACE_MODE
|
|
int iPolyDir; // GL_FRONT_FACE (CW/CCW indicator)
|
|
|
|
BOOL bPolySmooth; // GL_POLYGON_SMOOTH
|
|
int iPolyFrontMode; // GL_POLYGON_MODE
|
|
int iPolyBackMode; // GL_POLYGON_MODE
|
|
BOOL bPolyStippleEnable; // GL_POLYGON_STIPPLE
|
|
uint uiPolyStipple; // --
|
|
|
|
int iPointQuality;
|
|
int iLineQuality;
|
|
int iPolyQuality;
|
|
char acDummy2[16];
|
|
} RASTERDATA;
|
|
|
|
void InitRD(RASTERDATA *prd);
|
|
void raster_init(RASTERDATA rd);
|
|
|
|
#endif // RASTER_H
|