Source code of Windows XP (NT5)
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

  1. #ifndef RASTER_H
  2. #define RASTER_H
  3. typedef enum { POLY_POINT, POLY_LINE, POLY_FILL } PolygonFaceModeType;
  4. typedef enum { CULL_FRONT, CULL_BACK, CULL_FRONT_AND_BACK } CullFaceModeType;
  5. typedef struct {
  6. char acDummy1[16];
  7. GLfloat fPointSize; // GL_POINT_SIZE
  8. BOOL bPointSmooth; // GL_POINT_SMOOTH
  9. GLfloat fLineWidth; // GL_LINE_WIDTH
  10. BOOL bLineSmooth; // GL_LINE_SMOOTH
  11. GLushort usLineStipple; // GL_LINE_STIPPLE_PATTERN
  12. int iLineStippleRepeat; // GL_LINE_STIPPLE_REPEAT
  13. BOOL bLineStippleEnable; // GL_LINE_STIPPLE
  14. BOOL bPolyCullFaceEnable; // GL_CULL_FACE
  15. int iPolyCullMode; // GL_CULL_FACE_MODE
  16. int iPolyDir; // GL_FRONT_FACE (CW/CCW indicator)
  17. BOOL bPolySmooth; // GL_POLYGON_SMOOTH
  18. int iPolyFrontMode; // GL_POLYGON_MODE
  19. int iPolyBackMode; // GL_POLYGON_MODE
  20. BOOL bPolyStippleEnable; // GL_POLYGON_STIPPLE
  21. uint uiPolyStipple; // --
  22. int iPointQuality;
  23. int iLineQuality;
  24. int iPolyQuality;
  25. char acDummy2[16];
  26. } RASTERDATA;
  27. void InitRD(RASTERDATA *prd);
  28. void raster_init(RASTERDATA rd);
  29. #endif // RASTER_H