26 #ifndef __GR_PrimTetra__
27 #define __GR_PrimTetra__
82 const char *
className()
const override {
return "GR_PrimTetra"; }
119 unsigned int pick_type,
121 bool has_pick_map)
override;
A collection of Vulkan UBO, SSBO, and Image shader bindings (descriptor set)
GT_API const UT_StringHolder cache_name
Object that represents drawable geometry. This object holds vertex, instancing and index buffers for ...
Temporary container for either a RV_Render and an RE_Render.
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
set of parameters sent to GR_Primitive::update()
GR_PrimAcceptResult acceptPrimitive(GT_PrimitiveType t, int geo_type, const GT_PrimitiveHandle &ph, const GEO_Primitive *prim) override
~GR_PrimTetraHook() override
The primitive render hook which creates GR_PrimTetra objects.
void renderDecoration(RE_RenderContext r, GR_Decoration decor, const GR_DecorationParms &p) override
int renderPick(RE_RenderContext r, const GR_DisplayOption *opt, unsigned int pick_type, GR_PickStyle pick_style, bool has_pick_map) override
const char * className() const override
Return a string version of this class's name.
void render(RE_RenderContext r, GR_RenderMode render_mode, GR_RenderFlags flags, GR_DrawParms dp) override
ShaderType
The builtin shader programs used to draw the tetra.
void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p) override
GR_Primitive * createPrimitive(const GT_PrimitiveHandle >_prim, const GEO_Primitive *geo_prim, const GR_RenderInfo *info, const char *cache_name, GR_PrimAcceptResult &processed) override
GR_PrimTetra(const GR_RenderInfo *info, const char *cache_name, const GEO_Primitive *prim)