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.

169 lines
5.0 KiB

  1. @echo off
  2. setlocal
  3. if "%1"=="-clean" goto clean
  4. Rem
  5. Rem if ogptvar is set, then we were called by the batch file itself
  6. Rem and we should the polygon tests with the specified polygon size
  7. Rem
  8. if not "%ogptvar%"=="" goto polytests
  9. set echoon=@echo on
  10. set echooff=@echo off
  11. set end=end
  12. set program=%0
  13. set ogptname=ogpt
  14. Rem
  15. Rem If more polygon size are required, just add them to the list
  16. Rem
  17. Rem
  18. Rem See if the environment variable is defined, if so, use it
  19. Rem
  20. set defpolysizes=10 50 100
  21. if "%POLYGONSIZES%"=="" set POLYGONSIZES=%defpolysizes%
  22. Rem
  23. Rem Get rid of the prompt
  24. Rem
  25. set prompt=$
  26. set prompt=$d $t $
  27. Rem
  28. Rem parse arguments
  29. Rem
  30. :nextarg
  31. shift
  32. if "%0"=="" goto nomoreargs
  33. if "%0"=="-?" goto help
  34. if "%0"=="-h" goto help
  35. if "%0"=="-H" goto help
  36. if "%0"=="-help" goto help
  37. if "%0"=="-Help" goto help
  38. if "%0"=="-HELP" goto help
  39. if "%0"=="+db" set ogptdb=+db && goto nextarg
  40. echo %program% : unknown option '%0' && goto usage
  41. :nomoreargs
  42. %echoon%
  43. %ogptname% xform %ogptdb% +2d +brief +avg
  44. %ogptname% xform %ogptdb% +brief +avg
  45. %ogptname% xform %ogptdb% +aa +brief +avg
  46. %ogptname% line %ogptdb% +2d +brief +avg
  47. %ogptname% line %ogptdb% +2d +dashed +brief +avg
  48. %ogptname% line %ogptdb% +2d +width 3 +brief +avg
  49. %ogptname% line %ogptdb% +2d +dashed +width 3 +brief +avg
  50. %ogptname% line %ogptdb% +brief +avg
  51. %ogptname% line %ogptdb% +dashed +brief +avg
  52. %ogptname% line %ogptdb% +width 3 +brief +avg
  53. %ogptname% line %ogptdb% +dashed +width 3 +brief +avg
  54. %ogptname% line %ogptdb% +aa +brief +avg
  55. %ogptname% line %ogptdb% +depth +brief +avg
  56. %ogptname% line %ogptdb% +z +brief +avg
  57. %ogptname% line %ogptdb% +z +depth +brief +avg
  58. %echooff%
  59. Rem
  60. Rem Now that the first tests have been run, let's set
  61. Rem a known variable and call ourselves again with each value
  62. Rem
  63. for %%s in (%POLYGONSIZES%) do set ogptvar=+size %%s && call %program%
  64. goto othertests
  65. :polytests
  66. %echoon%
  67. %ogptname% qstrip %ogptdb% %ogptvar% +2d +brief +avg
  68. %ogptname% qstrip %ogptdb% %ogptvar% +brief +avg
  69. %ogptname% qstrip %ogptdb% %ogptvar% +shade +brief +avg
  70. %ogptname% qstrip %ogptdb% %ogptvar% +z +brief +avg
  71. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +brief +avg
  72. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +1ilight +brief +avg
  73. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +1llight +brief +avg
  74. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +4ilight +brief +avg
  75. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +4llight +brief +avg
  76. %ogptname% qstrip %ogptdb% %ogptvar% +z +shade +4ilight +4llight +brief +avg
  77. %ogptname% tmesh %ogptdb% %ogptvar% +2d +brief +avg
  78. %ogptname% tmesh %ogptdb% %ogptvar% +brief +avg
  79. %ogptname% tmesh %ogptdb% %ogptvar% +shade +brief +avg
  80. %ogptname% tmesh %ogptdb% %ogptvar% +z +brief +avg
  81. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +brief +avg
  82. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +1ilight +brief +avg
  83. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +1llight +brief +avg
  84. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +4ilight +brief +avg
  85. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +4llight +brief +avg
  86. %ogptname% tmesh %ogptdb% %ogptvar% +z +shade +4ilight +4llight +brief +avg
  87. %ogptname% poly %ogptdb% %ogptvar% +2d +brief +avg
  88. %ogptname% poly %ogptdb% %ogptvar% +2d +pattern +brief +avg
  89. %ogptname% poly %ogptdb% %ogptvar% +brief +avg
  90. %ogptname% poly %ogptdb% %ogptvar% +pattern +brief +avg
  91. %ogptname% poly %ogptdb% %ogptvar% +shade +brief +avg
  92. %ogptname% poly %ogptdb% %ogptvar% +z +brief +avg
  93. %ogptname% poly %ogptdb% %ogptvar% +z +shade +brief +avg
  94. %ogptname% poly %ogptdb% %ogptvar% +z +shade +1ilight +brief +avg
  95. %ogptname% poly %ogptdb% %ogptvar% +z +shade +1llight +brief +avg
  96. %ogptname% poly %ogptdb% %ogptvar% +z +shade +4ilight +brief +avg
  97. %ogptname% poly %ogptdb% %ogptvar% +z +shade +4llight +brief +avg
  98. %ogptname% poly %ogptdb% %ogptvar% +z +shade +4ilight +4llight +brief +avg
  99. %echooff%
  100. if not "%ogptvar%"=="" goto end
  101. :othertests
  102. %echoon%
  103. %ogptname% fill %ogptdb% +2d +brief +avg
  104. %ogptname% fill %ogptdb% +brief +avg
  105. %ogptname% fill %ogptdb% +pattern +brief +avg
  106. %ogptname% fill %ogptdb% +shade +brief +avg
  107. %ogptname% fill %ogptdb% +z +brief +avg
  108. %ogptname% fill %ogptdb% +z +shade +brief +avg
  109. %ogptname% char %ogptdb% +brief +avg
  110. %ogptname% clear %ogptdb% +brief +avg
  111. %ogptname% clear %ogptdb% +z +brief +avg
  112. %echooff%
  113. goto end
  114. :clean
  115. endlocal
  116. set prompt=$p$g
  117. set echoon=
  118. set echooff=
  119. set end=
  120. set program=
  121. set ogptvar=
  122. set ogptdb=
  123. set ogptname=
  124. set defpolysizes=
  125. goto lastline
  126. :usage
  127. echo usage: %program% [-h?] [+db] [-clean]
  128. goto %end%
  129. :help
  130. if "%end%"=="end" set end=help && goto usage
  131. echo+
  132. echo +db Enable double buffering
  133. echo -clean Clean up the environment (when something went wrong)
  134. echo+
  135. echo Environment variable: POLYGONSIZES=size1 size2 size3 ...
  136. echo if POLYGONSIZES is set, then tests will be conducted on polygons
  137. echo of sizes size1, size2, size3, etc.
  138. echo default is: %defpolysizes%
  139. goto end
  140. :end
  141. endlocal
  142. :lastline