20 #ifndef FASTUIDRAW_STROKED_POINT_HPP 21 #define FASTUIDRAW_STROKED_POINT_HPP 591 namespace StrokedPointPacking
637 template<
typename T, T>
648 number_attributes = 0,
659 number_attributes = 3,
670 number_attributes = 5,
681 number_attributes = 4,
692 number_attributes = 4,
703 number_attributes = 6,
714 number_attributes = 6,
725 number_attributes = 5,
740 bool for_dashed_stroking);
758 unsigned int *num_attributes,
759 unsigned int *num_indices);
785 unsigned int index_adjust);
801 unsigned int *num_attributes,
802 unsigned int *num_indices);
828 unsigned int index_adjust);
848 unsigned int *depth_range_size,
849 unsigned int *num_attributes,
850 unsigned int *num_indices);
870 unsigned int *depth_range_size,
871 unsigned int *num_attributes,
872 unsigned int *num_indices);
894 unsigned int depth_start,
897 unsigned int index_adjust);
919 unsigned int depth_start,
922 unsigned int index_adjust);
A StrokedPoint holds the data for a point of stroking where all segments are line segments (coming fr...
#define FASTUIDRAW_MASK(BIT0, NUMBITS)
uint32_t unpack_bits(uint32_t bit0, uint32_t num_bits, uint32_t value)
enum cap_type_t cap_type(enum PainterEnums::cap_style cp, bool for_dashed_stroking)
uint32_t depth(void) const
void pack_join(enum PainterEnums::join_style js, const TessellatedPath::join &join, unsigned int depth, c_array< PainterAttribute > dst_attribs, c_array< PainterIndex > dst_indices, unsigned int index_adjust)
packed_data_bit_layout_rounded_join_t
Enumeration encoding of bits of m_packed_data for those with offset type offset_rounded_join.
int on_boundary(void) const
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Represents the geometric data for a join.
file tessellated_path.hpp
float m_distance_from_contour_start
Represents the geometric data for a cap.
void depth(const uint32_t v)
Template class taking as argument a PainterEnums::join_style or cap_type_t which defines two enumerat...
void pack_segment_chain(const TessellatedPath::segment_chain &chain, unsigned int depth_start, c_array< PainterAttribute > dst_attribs, c_array< PainterIndex > dst_indices, unsigned int index_adjust)
void pack_rounded_join_size(const TessellatedPath::join &join, float thresh, unsigned int *num_attributes, unsigned int *num_indices)
cap_style
Enumeration specifying if and how to draw caps when stroking.
void pack_rounded_cap_size(float thresh, unsigned int *num_attributes, unsigned int *num_indices)
packed_data_bit_flat_cap_t
Enumeration encoding of bits of m_packed_data for those with offset type offset_flat_cap.
packed_data_bit_sub_edge_t
Enumeration encoding of bits of m_packed_data for those with offset type offset_sub_edge.
packed_data_bit_layout_common_t
Enumeration encoding of bits of m_packed_data common to all offset types.
The attribute data generated/filled by Painter. Attribute data is sent to 3D API as raw bits with the...
float m_distance_from_edge_start
offset_type_t
Enumeration for specifing the point type which in turn determines the meaning of the fields m_pre_off...
void pack_point(PainterAttribute *dst) const
enum offset_type_t offset_type(void) const
join_style
Enumeration specifying if and how to draw joins when stroking.
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
void pack_segment_chain_size(const TessellatedPath::segment_chain &chain, unsigned int *depth_range_size, unsigned int *num_attributes, unsigned int *num_indices)
static void unpack_point(StrokedPoint *dst, const PainterAttribute &src)
uint32_t pack_bits(uint32_t bit0, uint32_t num_bits, uint32_t value)
void pack_cap(enum cap_type_t cp, const TessellatedPath::cap &cap, unsigned int depth, c_array< PainterAttribute > dst_attribs, c_array< PainterIndex > dst_indices, unsigned int index_adjust)
packed_data_bit_masks_t
Enumeration holding bit masks.
file painter_attribute.hpp
packed_data_bit_adjustable_cap_t
Enumeration encoding of bits of m_packed_data for those with offset type offset_adjustable_cap.
packed_data_bit_layout_miter_join_t
Enumeration encoding of bits of m_packed_data for those with offset type offset_miter_clip_join.