openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ImTriangulator Struct Reference
Collaboration diagram for ImTriangulator:
Collaboration graph
[legend]

Public Member Functions

void Init (const ImVec2 *points, int points_count, void *scratch_buffer)
 
void GetNextTriangle (unsigned int out_triangle[3])
 
void BuildNodes (const ImVec2 *points, int points_count)
 
void BuildReflexes ()
 
void BuildEars ()
 
void FlipNodeList ()
 
bool IsEar (int i0, int i1, int i2, const ImVec2 &v0, const ImVec2 &v1, const ImVec2 &v2) const
 
void ReclassifyNode (ImTriangulatorNode *node)
 

Static Public Member Functions

static int EstimateTriangleCount (int points_count)
 
static int EstimateScratchBufferSize (int points_count)
 

Public Attributes

int _TrianglesLeft = 0
 
ImTriangulatorNode_Nodes = NULL
 
ImTriangulatorNodeSpan _Ears
 
ImTriangulatorNodeSpan _Reflexes
 

Detailed Description

Definition at line 1786 of file imgui_draw.cc.

Member Function Documentation

◆ BuildEars()

void ImTriangulator::BuildEars ( )

◆ BuildNodes()

void ImTriangulator::BuildNodes ( const ImVec2 *  points,
int  points_count 
)

◆ BuildReflexes()

void ImTriangulator::BuildReflexes ( )

◆ EstimateScratchBufferSize()

static int ImTriangulator::EstimateScratchBufferSize ( int  points_count)
inlinestatic

Definition at line 1789 of file imgui_draw.cc.

◆ EstimateTriangleCount()

static int ImTriangulator::EstimateTriangleCount ( int  points_count)
inlinestatic

Definition at line 1788 of file imgui_draw.cc.

Referenced by Init().

◆ FlipNodeList()

void ImTriangulator::FlipNodeList ( )

Definition at line 1901 of file imgui_draw.cc.

References _Nodes, ImTriangulatorNode::Next, and ImTriangulatorNode::Prev.

Referenced by GetNextTriangle().

◆ GetNextTriangle()

void ImTriangulator::GetNextTriangle ( unsigned int  out_triangle[3])

◆ Init()

void ImTriangulator::Init ( const ImVec2 *  points,
int  points_count,
void *  scratch_buffer 
)

◆ IsEar()

bool ImTriangulator::IsEar ( int  i0,
int  i1,
int  i2,
const ImVec2 &  v0,
const ImVec2 &  v1,
const ImVec2 &  v2 
) const

◆ ReclassifyNode()

void ImTriangulator::ReclassifyNode ( ImTriangulatorNode node)

Member Data Documentation

◆ _Ears

ImTriangulatorNodeSpan ImTriangulator::_Ears

Definition at line 1805 of file imgui_draw.cc.

Referenced by BuildEars(), GetNextTriangle(), Init(), and ReclassifyNode().

◆ _Nodes

ImTriangulatorNode* ImTriangulator::_Nodes = NULL

◆ _Reflexes

ImTriangulatorNodeSpan ImTriangulator::_Reflexes

Definition at line 1806 of file imgui_draw.cc.

Referenced by BuildReflexes(), GetNextTriangle(), Init(), IsEar(), and ReclassifyNode().

◆ _TrianglesLeft

int ImTriangulator::_TrianglesLeft = 0

Definition at line 1803 of file imgui_draw.cc.

Referenced by BuildEars(), BuildReflexes(), GetNextTriangle(), and Init().


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