Blender V5.0
blender::draw::overlay::LinePrimitiveBuf Struct Reference

#include <overlay_private.hh>

Inherits blender::draw::overlay::VertexPrimitiveBuf.

Public Member Functions

 LinePrimitiveBuf (const SelectionType selection_type, const char *name=nullptr)
void append (const float3 &start, const float3 &end, const float4 &color, select::ID select_id=select::SelectMap::select_invalid_id())
void append (const float3 &start, const float3 &end, const int color_id, select::ID select_id=select::SelectMap::select_invalid_id())
void end_sync (PassSimple::Sub &pass)
Public Member Functions inherited from blender::draw::overlay::VertexPrimitiveBuf
void clear ()

Additional Inherited Members

Protected Member Functions inherited from blender::draw::overlay::VertexPrimitiveBuf
 VertexPrimitiveBuf (const SelectionType selection_type, const char *name=nullptr)
void append (const float3 &position, const float4 &color)
void end_sync (PassSimple::Sub &pass, GPUPrimType primitive)
Protected Attributes inherited from blender::draw::overlay::VertexPrimitiveBuf
select::SelectBuf select_buf
StorageVectorBuffer< VertexDatadata_buf
int color_id = 0

Detailed Description

Definition at line 1152 of file overlay_private.hh.

Constructor & Destructor Documentation

◆ LinePrimitiveBuf()

blender::draw::overlay::LinePrimitiveBuf::LinePrimitiveBuf ( const SelectionType selection_type,
const char * name = nullptr )
inline

Member Function Documentation

◆ append() [1/2]

◆ append() [2/2]

void blender::draw::overlay::LinePrimitiveBuf::append ( const float3 & start,
const float3 & end,
const int color_id,
select::ID select_id = select::SelectMap::select_invalid_id() )
inline

◆ end_sync()

void blender::draw::overlay::LinePrimitiveBuf::end_sync ( PassSimple::Sub & pass)
inline

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