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.

55 lines
1.2 KiB

  1. #include <windows.h>
  2. #include <gl\gl.h>
  3. #include <gl\glaux.h>
  4. #include <stdio.h>
  5. #include <math.h>
  6. #include "hugetest.h"
  7. #include "teapot.h"
  8. #include "tpttxtr.h"
  9. TeapotTextureTest::TeapotTextureTest()
  10. {
  11. td.swapbuffers = TRUE;
  12. td.iDuration = 10000;
  13. td.iX = 0;
  14. td.iY = 0;
  15. td.iW = 640;
  16. td.iH = 480;
  17. sprintf(td.acName, "Texture Test");
  18. sprintf(td.acTestStatName, "whatever");
  19. bd.uiClear = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT;
  20. bd.fClearColor[0] = 0.0;
  21. bd.fClearColor[1] = 0.0;
  22. bd.fClearColor[2] = 0.0;
  23. bd.cColorBits = 8;
  24. bd.cDepthBits = 16;
  25. bd.bDepthTestEnable = TRUE;
  26. bd.iDepthFunction = LEQUAL;
  27. bd.bNormalize = TRUE;
  28. xd.bEnable2D = TRUE;
  29. xd.bAutoGenS = FALSE;
  30. xd.bAutoGenT = FALSE;
  31. xd.bAutoGenR = FALSE;
  32. xd.bAutoGenQ = FALSE;
  33. xd.iGenModeS = OBJECT_LINEAR;
  34. xd.iGenModeT = OBJECT_LINEAR;
  35. xd.iGenModeR = DISABLE;
  36. xd.iGenModeQ = DISABLE;
  37. xd.iEnvMode = DECAL;
  38. xd.aiFilter[2] = NEAREST;
  39. xd.aiFilter[3] = NEAREST;
  40. afDrawColor[0] = 1.0;
  41. afDrawColor[1] = 1.0;
  42. afDrawColor[2] = 0.0;
  43. range.fxMin = -3.5;
  44. range.fyMin = -3.5;
  45. range.fzMin = -3.5;
  46. range.fxMax = 3.5;
  47. range.fyMax = 3.5;
  48. range.fzMax = 3.5;
  49. }