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.

36 lines
805 B

  1. #ifndef PRIMTEST_H
  2. #define PRIMTEST_H
  3. #include "hugetest.h"
  4. #include "pntlist.h"
  5. #define NUMBEROFPRIMATIVES 10
  6. // 0 = points, 1 = lines, 2 = polygon, 3 = triangles, 4 = quads
  7. // 5 = line stip, 6 = line loop, 7 = tri strip, 8 = tri fan, 9 = quad strip
  8. class PrimativeTest : public HugeTest
  9. {
  10. private:
  11. typedef HugeTest parent;
  12. public:
  13. PrimativeTest();
  14. ~PrimativeTest() {};
  15. virtual void RENDFUNCTION();
  16. virtual void IDLEFUNCTION();
  17. virtual void SaveData();
  18. virtual void RestoreSaved();
  19. virtual void ForgetSaved();
  20. virtual int Save(HANDLE hFile);
  21. virtual int Load(HANDLE hFile);
  22. protected:
  23. PointList aPntLst[NUMBEROFPRIMATIVES];
  24. GLfloat fClr4, fClr5, fClr6; // not saved
  25. BOOL bRotCol; // not saved
  26. };
  27. #endif // PRIMTEST_H