24 #ifndef PXR_IMAGING_HD_ST_DRAW_ITEM_INSTANCE_H 25 #define PXR_IMAGING_HD_ST_DRAW_ITEM_INSTANCE_H 28 #include "pxr/imaging/hdSt/api.h" 29 #include "pxr/imaging/hdSt/drawItem.h" 31 PXR_NAMESPACE_OPEN_SCOPE
33 using HdSt_DrawBatchSharedPtr = std::shared_ptr<class HdSt_DrawBatch>;
74 void SetBatch(HdSt_DrawBatch *batch);
82 HdSt_DrawBatch * _batch;
83 HdStDrawItem
const * _drawItem;
89 PXR_NAMESPACE_CLOSE_SCOPE
91 #endif // PXR_IMAGING_HD_ST_DRAW_ITEM_INSTANCE_H HDST_API void SetVisible(bool visible)
Set visibility state.
A container to store instance state for a drawitem.
size_t GetBatchIndex() const
Query batch index.
HDST_API void SetBatchIndex(size_t batchIndex)
Set index into batch list.
bool IsVisible() const
Query visibility state.
HdStDrawItem const * GetDrawItem() const
Return a const pointer to draw item.
void SetBatch(HdSt_DrawBatch *batch)
Set the batch that will receive the DrawItemInstanceChanged callback when visibility is updated.