windows-nt/Source/XPSP1/NT/multimedia/opengl/test/profiler/primtest.h
2020-09-26 16:20:57 +08:00

37 lines
805 B
C++

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