40 #include "UT/UT_Version.h"
41 #if UT_MAJOR_VERSION_INT >= 12 && UT_MINOR_VERSION_INT <= 1
43 #ifndef IECOREHOUDINI_GRCORTEX_H
44 #define IECOREHOUDINI_GRCORTEX_H
46 #include "GR/GR_Detail.h"
47 #include "GR/GR_DisplayOption.h"
48 #include "GR/GR_RenderHook.h"
51 #include "IECoreGL/IECoreGL.h"
52 #include "IECoreGL/Renderer.h"
59 class GR_Cortex :
public GR_RenderHook
68 virtual GA_PrimCompat::TypeMask getWireMask( GU_Detail *gdp,
const GR_DisplayOption *dopt )
const;
71 virtual GA_PrimCompat::TypeMask getShadedMask( GU_Detail *gdp,
const GR_DisplayOption *dopt )
const;
74 virtual void renderWire( GU_Detail *gdp, RE_Render &ren,
const GR_AttribOffset &ptinfo,
const GR_DisplayOption *dopt,
float lod,
const GU_PrimGroupClosure *hidden_geometry );
77 virtual void renderShaded( GU_Detail *gdp, RE_Render &ren,
const GR_AttribOffset &ptinfo,
const GR_DisplayOption *dopt,
float lod,
const GU_PrimGroupClosure *hidden_geometry );
80 void render( GU_Detail *gdp,
const IECoreGL::State *displayState );
81 void renderObject(
const IECore::Object *
object,
const IECoreGL::State *displayState );
84 virtual const char *getName()
const
86 return "IECoreHoudini::GR_Cortex";
93 IECoreGL::ConstStatePtr getDisplayState(
const GR_DisplayOption *dopt,
bool wireframe=
false );
99 #endif // IECOREHOUDINI_GRCORTEX_H
101 #endif // 12.1 or earlier
The IECoreHoudini namespace holds all the functionality of libIECoreHoudini.
Definition: CoreHoudini.h:51