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.

73 lines
1.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: scene.h
  3. *
  4. * Structures used to describe a scene.
  5. *
  6. * Created: 09-Mar-1995 14:51:33
  7. * Author: Gilman Wong [gilmanw]
  8. *
  9. * Copyright (c) 1995 Microsoft Corporation
  10. *
  11. \**************************************************************************/
  12. #ifndef _SCENE_H_
  13. #define _SCENE_H_
  14. typedef struct tagMyXYZ
  15. {
  16. GLfloat x;
  17. GLfloat y;
  18. GLfloat z;
  19. } MyXYZ;
  20. typedef struct tagMyRGBA
  21. {
  22. GLfloat r;
  23. GLfloat g;
  24. GLfloat b;
  25. GLfloat a;
  26. } MyRGBA;
  27. typedef struct tagMultList
  28. {
  29. GLuint count;
  30. GLuint listBase;
  31. } MultiList;
  32. typedef struct tagSCENE
  33. {
  34. // Viewing parameters.
  35. MyXYZ xyzFrom;
  36. MyXYZ xyzAt;
  37. MyXYZ xyzUp;
  38. float ViewAngle;
  39. float Hither;
  40. float Yon;
  41. float AspectRatio;
  42. SIZE szWindow;
  43. // Clear color.
  44. MyRGBA rgbaClear;
  45. // Lights.
  46. MultiList Lights;
  47. // Objects.
  48. MultiList Objects;
  49. // State
  50. // For use by format parser.
  51. VOID *pvData;
  52. } SCENE;
  53. #endif