KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET Struct Reference

Public Member Functions

RHI_SHAPE_COUNTS Sizes () const
 
bool Empty () const
 
void ClearGeometry ()
 

Public Attributes

SHAPE_INSTANCES instances
 
std::vector< RHI_VERTEX > polygonVertices
 
std::vector< BITMAP_QUAD > bitmapQuads
 
std::vector< POLARITY_MARK > polarityMarks
 
std::vector< POLARITY_RUN > polarityRuns
 built from the marks by Flush()
 
bool drawsNegative = false
 polarity of the last element drawn
 
std::array< RHI_BufferHandle, RHI_SHAPES > buffer
 
std::array< size_t, RHI_SHAPES > capacity {}
 
RHI_SHAPE_COUNTS lastCount {}
 Elements of each shape as last processed, normal and negative.
 
RHI_SHAPE_COUNTS lastNegCount {}
 
std::shared_ptr< const RHI_RUN_TABLE > cullRuns
 Bounds of the arrays above as last processed, for culling off-screen runs.
 

Detailed Description

Definition at line 486 of file gal_modern.h.

Member Function Documentation

◆ ClearGeometry()

void KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::ClearGeometry ( )
inline

◆ Empty()

bool KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::Empty ( ) const
inline

Definition at line 507 of file gal_modern.h.

References bitmapQuads, and Sizes().

Referenced by KIGFX::GAL_MODERN::Flush().

◆ Sizes()

Member Data Documentation

◆ bitmapQuads

◆ buffer

std::array<RHI_BufferHandle, RHI_SHAPES> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::buffer

Definition at line 526 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::Flush().

◆ capacity

std::array<size_t, RHI_SHAPES> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::capacity {}

Definition at line 527 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::Flush().

◆ cullRuns

std::shared_ptr<const RHI_RUN_TABLE> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::cullRuns

Bounds of the arrays above as last processed, for culling off-screen runs.

Definition at line 534 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::Flush(), and KIGFX::GAL_MODERN::GetDynamicDrawDesc().

◆ drawsNegative

bool KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::drawsNegative = false

polarity of the last element drawn

Definition at line 494 of file gal_modern.h.

Referenced by ClearGeometry(), and KIGFX::GAL_MODERN::notePolarity().

◆ instances

◆ lastCount

RHI_SHAPE_COUNTS KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::lastCount {}

Elements of each shape as last processed, normal and negative.

Definition at line 530 of file gal_modern.h.

Referenced by ClearGeometry(), and KIGFX::GAL_MODERN::Flush().

◆ lastNegCount

RHI_SHAPE_COUNTS KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::lastNegCount {}

Definition at line 531 of file gal_modern.h.

Referenced by ClearGeometry(), and KIGFX::GAL_MODERN::Flush().

◆ polarityMarks

std::vector<POLARITY_MARK> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::polarityMarks

◆ polarityRuns

std::vector<POLARITY_RUN> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::polarityRuns

built from the marks by Flush()

Definition at line 493 of file gal_modern.h.

Referenced by ClearGeometry(), and KIGFX::GAL_MODERN::Flush().

◆ polygonVertices

std::vector<RHI_VERTEX> KIGFX::GAL_MODERN::GEOMETRY_BUFFER_SET::polygonVertices

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