35 #ifndef IECOREGL_BOXPRIMITIVE_H
36 #define IECOREGL_BOXPRIMITIVE_H
38 #include "IECoreGL/Export.h"
39 #include "IECoreGL/Primitive.h"
44 class IECOREGL_API BoxPrimitive :
public Primitive
49 IE_CORE_DECLARERUNTIMETYPEDEXTENSION( IECoreGL::BoxPrimitive, BoxPrimitiveTypeId, Primitive );
51 BoxPrimitive(
const Imath::Box3f &box );
52 ~BoxPrimitive()
override;
54 void setBox(
const Imath::Box3f &box );
55 const Imath::Box3f getBox()
const;
57 Imath::Box3f bound()
const override;
61 static void renderWireframe(
const Imath::Box3f &box );
63 static void renderSolid(
const Imath::Box3f &box );
67 void render(
const State * state,
IECore::TypeId style )
const override;
75 IE_CORE_DECLAREPTR( BoxPrimitive );
79 #endif // IECOREGL_BOXPRIMITIVE_H
The namespace within which all CoreGL functionality is defined.
Definition: AlphaTexture.h:41
Definition: PrimitiveVariable.h:47
TypeId
Definition: TypeIds.h:46