24 #ifndef PXR_IMAGING_HD_ST_UNIT_TEST_GLDRAWING_H
25 #define PXR_IMAGING_HD_ST_UNIT_TEST_GLDRAWING_H
28 #include "pxr/imaging/hdSt/api.h"
35 PXR_NAMESPACE_OPEN_SCOPE
38 class HdSt_UnitTestWindow;
44 class HdSt_UnitTestGLDrawing {
47 HdSt_UnitTestGLDrawing();
49 virtual ~HdSt_UnitTestGLDrawing();
54 int GetHeight()
const;
56 void RunTest(
int argc,
char *argv[]);
58 void RunOffscreenTest();
60 virtual void InitTest() = 0;
61 HDST_API
virtual void UninitTest();
62 virtual void DrawTest() = 0;
63 virtual void OffscreenTest() = 0;
66 virtual void MousePress(
int button,
int x,
int y,
int modKeys);
68 virtual void MouseRelease(
int button,
int x,
int y,
int modKeys);
70 virtual void MouseMove(
int x,
int y,
int modKeys);
72 virtual void KeyRelease(
int key);
78 bool WriteToFile(std::string
const & attachment,
79 std::string
const & filename)
const;
83 virtual void ParseArgs(
int argc,
char *argv[]);
85 void SetCameraRotate(
float rx,
float ry) {
86 _rotate[0] = rx; _rotate[1] = ry;
88 void SetCameraTranslate(
GfVec3f t) {
91 GfVec3f GetCameraTranslate()
const {
101 GfVec2i GetMousePos()
const {
return GfVec2i(_mousePos[0], _mousePos[1]); }
104 HdSt_UnitTestWindow *_widget;
109 bool _mouseButton[3];
113 PXR_NAMESPACE_CLOSE_SCOPE
115 #endif // PXR_IMAGING_HD_ST_UNIT_TEST_GLDRAWING_H
Basic type for a vector of 2 int components.
Basic type for a vector of 3 float components.
Stores a 4x4 matrix of double elements.
Basic type: View frustum.