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.

39 lines
925 B

  1. #include <windows.h>
  2. #include <gl\gl.h>
  3. #include <stdio.h>
  4. #include "hugetest.h"
  5. #include "large2.h"
  6. LargeTriangle2::LargeTriangle2()
  7. {
  8. td.swapbuffers = TRUE;
  9. td.iDuration = 10000;
  10. td.iX = 0;
  11. td.iY = 0;
  12. td.iW = 640;
  13. td.iH = 480;
  14. sprintf(td.acName, "Large Triangles 2");
  15. sprintf(td.acTestStatName, "Pixels");
  16. bd.uiClear = GL_COLOR_BUFFER_BIT;
  17. bd.cColorBits = 8;
  18. bd.cDepthBits = 16;
  19. range.fxMin = 0;
  20. range.fxMax = 300;
  21. range.fyMin = 0;
  22. range.fyMax = 200;
  23. aPntLst[3].AddPoint(range.fxMin, range.fyMin, 0);
  24. aPntLst[3].AddPoint(range.fxMax, range.fyMin, 0);
  25. aPntLst[3].AddPoint(range.fxMax, range.fyMax, 0);
  26. aPntLst[3].AddPoint(range.fxMin, range.fyMin, 0);
  27. aPntLst[3].AddPoint(range.fxMin, range.fyMax, 0);
  28. aPntLst[3].AddPoint(range.fxMax, range.fyMax, 0);
  29. }
  30. void LargeTriangle2::INITFUNCTION()
  31. {
  32. td.dResult = w * h;
  33. parent::initfunct(w,h);
  34. }