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
1011 B

  1. #ifndef BUFFERS_H
  2. #define BUFFERS_H
  3. typedef unsigned char uchar, u_char, byte;
  4. typedef unsigned short ushort, u_short;
  5. typedef unsigned long ulong, u_long;
  6. typedef unsigned int uint, u_int;
  7. typedef enum { SMOOTH, FLAT } ShadeModelType;
  8. typedef enum { NEVER, ALWAYS, LESS, LEQUAL, EQUAL, GEQUAL, GREATER, NOTEQUAL } DepthTestsType;
  9. typedef struct {
  10. char acDummy1[16];
  11. uint uiClear; // GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT
  12. // GL_STENCIL_BUFFER_BIT | GL_ACCUM_BUFFER_BIT
  13. byte cColorBits; // # of bits of color per pixel
  14. GLfloat fClearColor[4];
  15. byte cDepthBits; // # of bits in z-buffer
  16. BOOL bDepthTestEnable;
  17. int iDepthFunction;
  18. BOOL bStencilEnable;
  19. BOOL bAccumEnable;
  20. int iShadeModel;
  21. BOOL bNormalize;
  22. BOOL bAutoNormal;
  23. char acDummy2[16];
  24. } BUFFERDATA;
  25. void InitBD(BUFFERDATA *pbd);
  26. void buffers_init(BUFFERDATA bd);
  27. #endif // BUFFERS_H