Leaked source code of windows server 2003
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.

94 lines
3.3 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // testfile.h
  4. //
  5. // Defines for file with test data.
  6. //
  7. // File format:
  8. // File contains chunks of data. Each chunk has four-byte ID, four-byte data size field and
  9. // "size" number of bytes of data.
  10. // Chunks:
  11. // ID Meaning Data
  12. // 1 Scene capture DWORD flags
  13. // 2 Render state DWORD states count
  14. // States (D3DSTATE*count)
  15. // 3 Render primitive DWORD status
  16. // D3DPRIMITIVETYPE primitive type
  17. // DWORD number of vertices
  18. // D3DVERTEXTYPE vertex type
  19. // D3DINSTRUCTION
  20. // Primitive record (D3DPOINT, D3DLINE ...)
  21. // Primitive vertices (TLVERTEX)
  22. // ...
  23. // 4 Draw one primitive D3DPRIMITIVETYPE primitive type
  24. // DWORD number of vertices
  25. // D3DVERTEXTYPE vertex type
  26. // Vertices
  27. // 5 Draw one indexed D3DPRIMITIVETYPE primitive type
  28. // primitive DWORD number of vertices
  29. // DWORD number of indices
  30. // D3DVERTEXTYPE vertex type
  31. // Vertices
  32. // Indices (WORD)
  33. // 6 Draw primitives The same as DDI data, but without 32 byte
  34. // alignment.
  35. //
  36. // Copyright (C) Microsoft Corporation, 1997.
  37. //
  38. //----------------------------------------------------------------------------
  39. #ifndef _TESTFILE_H_
  40. #define _TESTFILE_H_
  41. // TF stands for "TestFile"
  42. typedef struct
  43. {
  44. DWORD id; // record ID
  45. DWORD size; // size of data in bytes (exclude size of REC_HEADER)
  46. } TF_HEADER;
  47. // ID for test file records
  48. const DWORD TFID_SCENECAPTURE = 1;
  49. const DWORD TFID_RENDERSTATE = 2;
  50. const DWORD TFID_RENDERPRIMITIVE = 3;
  51. const DWORD TFID_DRAWONEPRIMITIVE = 4;
  52. const DWORD TFID_DRAWONEINDEXEDPRIMITIVE = 5;
  53. const DWORD TFID_DRAWPRIMITIVES = 6;
  54. const DWORD TFID_DRAWPRIMITIVES2 = 7;
  55. // Fixed size record headers
  56. typedef struct
  57. {
  58. DWORD status;
  59. D3DPRIMITIVETYPE primitiveType;
  60. DWORD vertexCount;
  61. D3DVERTEXTYPE vertexType;
  62. } TFREC_RENDERPRIMITIVE;
  63. typedef struct
  64. {
  65. D3DPRIMITIVETYPE primitiveType;
  66. DWORD vertexCount;
  67. D3DVERTEXTYPE vertexType;
  68. DWORD dwFlags;
  69. } TFREC_DRAWONEPRIMITIVE;
  70. typedef struct
  71. {
  72. D3DPRIMITIVETYPE primitiveType;
  73. DWORD vertexCount;
  74. D3DVERTEXTYPE vertexType;
  75. DWORD indexCount;
  76. DWORD dwFlags;
  77. } TFREC_DRAWONEINDEXEDPRIMITIVE;
  78. typedef struct
  79. {
  80. DWORD dwFlags;
  81. } TFREC_DRAWPRIMITIVES;
  82. typedef struct
  83. {
  84. DWORD dwFlags;
  85. } TFREC_DRAWPRIMITIVES2;
  86. #endif