Blender V4.3
blender::draw::pbvh::DrawCache Class Referenceabstract

#include <DRW_pbvh.hh>

Inherits blender::bke::pbvh::DrawCache.

Inherited by blender::draw::pbvh::DrawCacheImpl.

Public Member Functions

virtual ~DrawCache ()=default
 
virtual Span< gpu::Batch * > ensure_tris_batches (const Object &object, const ViewportRequest &request, const IndexMask &nodes_to_update)=0
 
virtual Span< gpu::Batch * > ensure_lines_batches (const Object &object, const ViewportRequest &request, const IndexMask &nodes_to_update)=0
 
virtual Span< intensure_material_indices (const Object &object)=0
 
- Public Member Functions inherited from blender::bke::pbvh::DrawCache
virtual void tag_positions_changed (const IndexMask &node_mask)=0
 
virtual void tag_visibility_changed (const IndexMask &node_mask)=0
 
virtual void tag_topology_changed (const IndexMask &node_mask)=0
 
virtual void tag_face_sets_changed (const IndexMask &node_mask)=0
 
virtual void tag_masks_changed (const IndexMask &node_mask)=0
 
virtual void tag_attribute_changed (const IndexMask &node_mask, StringRef attribute_name)=0
 

Detailed Description

Definition at line 67 of file DRW_pbvh.hh.

Constructor & Destructor Documentation

◆ ~DrawCache()

virtual blender::draw::pbvh::DrawCache::~DrawCache ( )
virtualdefault

Reimplemented from blender::bke::pbvh::DrawCache.

Member Function Documentation

◆ ensure_lines_batches()

virtual Span< gpu::Batch * > blender::draw::pbvh::DrawCache::ensure_lines_batches ( const Object & object,
const ViewportRequest & request,
const IndexMask & nodes_to_update )
pure virtual

Recalculate and copy data as necessary to prepare batches for drawing wireframe geometry for a specific combination of attributes.

Implemented in blender::draw::pbvh::DrawCacheImpl.

Referenced by drw_sculpt_generate_calls(), and blender::draw::sculpt_batches_get_ex().

◆ ensure_material_indices()

virtual Span< int > blender::draw::pbvh::DrawCache::ensure_material_indices ( const Object & object)
pure virtual

Return the material index for each node (all faces in a node should have the same material index, as ensured by the BVH building process).

Implemented in blender::draw::pbvh::DrawCacheImpl.

Referenced by drw_sculpt_generate_calls(), and blender::draw::sculpt_batches_get_ex().

◆ ensure_tris_batches()

virtual Span< gpu::Batch * > blender::draw::pbvh::DrawCache::ensure_tris_batches ( const Object & object,
const ViewportRequest & request,
const IndexMask & nodes_to_update )
pure virtual

Recalculate and copy data as necessary to prepare batches for drawing triangles for a specific combination of attributes.

Implemented in blender::draw::pbvh::DrawCacheImpl.

Referenced by drw_sculpt_generate_calls(), and blender::draw::sculpt_batches_get_ex().


The documentation for this class was generated from the following file: