27 #ifndef __usd_HydraDriver_h__ 28 #define __usd_HydraDriver_h__ 30 #include "pxr/imaging/hd/engine.h" 32 #include "pxr/imaging/hd/renderPass.h" 33 #include "pxr/imaging/hd/renderPassState.h" 34 #include "pxr/imaging/hio/glslfx.h" 36 #include "pxr/base/gf/vec4d.h" 37 #include "pxr/base/gf/matrix4d.h" 40 #include <boost/scoped_ptr.hpp> 56 void Draw(HdEngine& a_rEngine,
bool withGuides=
false);
57 void Draw(HdEngine& a_rEngine,
58 HdRenderPassSharedPtr
const &renderPass);
61 void SetCamera(GfMatrix4d
const &modelViewMatrix,
62 GfMatrix4d
const &projectionMatrix,
63 GfVec4d
const &viewport);
65 HdRenderPassSharedPtr
const& GetRenderPass(
bool withGuides=
false);
67 HdRenderPassStateSharedPtr
const& GetRenderPassState(
void)
const 68 {
return m_renderPassState; }
71 {
return *m_pSceneDelegate; }
73 void SetRepr(TfToken
const &reprName);
77 class NullRenderPass:
public HdRenderPass
80 NullRenderPass(HdRenderIndex *index,
81 HdRprimCollection
const &collection):
82 HdRenderPass(index, collection) {}
83 virtual ~NullRenderPass(
void) {}
85 #if HD_API_VERSION>=31 86 void _Execute(HdRenderPassStateSharedPtr
const &renderPassState,
87 TfTokenVector
const &renderTags)
override {}
91 void _Init(TfToken
const &reprName);
93 HdStRenderDelegate m_renderDelegate;
94 HdRenderIndex* m_pRenderIndex;
97 HdRenderPassSharedPtr m_geomPass;
98 HdRenderPassSharedPtr m_geomAndGuidePass;
99 HdRenderPassStateSharedPtr m_renderPassState;
101 std::unique_ptr<class Hgi> m_hgi;
102 HdDriver m_hgiDriver;
105 #endif // __usd_HydraDriver_h__ A simple delegate class for unit test driver.
Definition: HydraDelegate.h:51
A unit test driver that exercises the core engine.
Definition: HydraDriver.h:49
void SetCamera(GfMatrix4d const &modelViewMatrix, GfMatrix4d const &projectionMatrix, GfVec4d const &viewport)
Set camera to renderpass.
Definition: HydraDriver.cc:178