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.

59 lines
950 B

  1. /**
  2. ** File : glstructs.h
  3. ** Description: GL specific structs
  4. **/
  5. #ifndef _glstructs_h_
  6. #define _glstructs_h_
  7. #include <gl/gl.h>
  8. typedef struct __GLcolorRec
  9. {
  10. GLfloat r, g, b, a;
  11. } __GLcolor;
  12. typedef struct GLmaterialRec
  13. {
  14. __GLcolor emissive;
  15. __GLcolor ambient;
  16. __GLcolor diffuse;
  17. __GLcolor specular;
  18. __GLcolor ci;
  19. GLfloat shininess;
  20. GLuint texObj;
  21. } GLmaterial, *LPGLmaterial;
  22. typedef struct __GLvert
  23. {
  24. GLfloat x, y, z;
  25. } GLvertex;
  26. typedef GLvertex* LPGLvertex;
  27. typedef struct __GLnorm
  28. {
  29. GLfloat x, y, z;
  30. } GLnormal;
  31. typedef GLnormal* LPGLnormal;
  32. typedef struct __GLtexCoord
  33. {
  34. GLfloat s, t;
  35. } GLtexCoord;
  36. typedef GLtexCoord* LPGLtexCoord;
  37. typedef struct __GLface
  38. {
  39. WORD w[3];
  40. } GLface;
  41. typedef GLface* LPGLface;
  42. typedef struct __GLwedgeAttrib
  43. {
  44. GLnormal n;
  45. GLtexCoord t;
  46. } GLwedgeAttrib;
  47. typedef GLwedgeAttrib* LPGLwedgeAttrib;
  48. #endif //_glstructs_h_