FastUIDraw
Public Member Functions | Public Attributes | List of all members
fastuidraw::TessellatedPath::TessellationParams Class Reference

A TessellationParams stores how finely to tessellate the curves of a path. More...

#include <tessellated_path.hpp>

Public Member Functions

 TessellationParams (void)
 
TessellationParamsmax_distance (float p)
 
TessellationParamsmax_recursion (unsigned int v)
 

Public Attributes

float m_max_distance
 
unsigned int m_max_recursion
 

Detailed Description

A TessellationParams stores how finely to tessellate the curves of a path.

Definition at line 123 of file tessellated_path.hpp.

Constructor & Destructor Documentation

◆ TessellationParams()

fastuidraw::TessellatedPath::TessellationParams::TessellationParams ( void  )
inline

Ctor, initializes values.

Definition at line 129 of file tessellated_path.hpp.

Member Function Documentation

◆ max_distance()

TessellationParams& fastuidraw::TessellatedPath::TessellationParams::max_distance ( float  p)
inline

Provided as a conveniance. Equivalent to

Parameters
pvalue to which to assign to m_max_distance

Definition at line 142 of file tessellated_path.hpp.

◆ max_recursion()

TessellationParams& fastuidraw::TessellatedPath::TessellationParams::max_recursion ( unsigned int  v)
inline

Set the value of m_max_recursion.

Parameters
vvalue to which to assign to m_max_recursion

Definition at line 153 of file tessellated_path.hpp.

Member Data Documentation

◆ m_max_distance

float fastuidraw::TessellatedPath::TessellationParams::m_max_distance

Maximum distance to attempt between the actual curve and the tessellation. A value less than or equal to zero indicates to accept any distance value between the tessellation and the curve. Default value is -1.0 (i.e. accept any distance value).

Definition at line 165 of file tessellated_path.hpp.

◆ m_max_recursion

unsigned int fastuidraw::TessellatedPath::TessellationParams::m_max_recursion

Maximum number of times to perform recursion to tessellate an edge. Default value is 5.

Definition at line 171 of file tessellated_path.hpp.


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