FastUIDraw
|
A PainterClipEquations stores the clip equation for Painter. More...
#include <painter_clip_equations.hpp>
Public Types | |
enum | clip_equations_data_offset_t { clip0_coeff_x, clip0_coeff_y, clip0_coeff_w, clip1_coeff_x, clip1_coeff_y, clip1_coeff_w, clip2_coeff_x, clip2_coeff_y, clip2_coeff_w, clip3_coeff_x, clip3_coeff_y, clip3_coeff_w, clip_data_size } |
Enumeration that provides offsets for the elements of the clip equation offsets in units of uint32_t. More... | |
Public Member Functions | |
PainterClipEquations (void) | |
unsigned int | data_size (void) const |
void | pack_data (c_array< uvec4 > dst) const |
Public Attributes | |
vecN< vec3, 4 > | m_clip_equations |
A PainterClipEquations stores the clip equation for Painter.
Each vec3 gives a clip equation in 3D API clip coordinats (i.e. after PainterItemMatrix transformation is applied) as dot(clip_vector, p) >= 0.
Definition at line 42 of file painter_clip_equations.hpp.
Enumeration that provides offsets for the elements of the clip equation offsets in units of uint32_t.
Definition at line 51 of file painter_clip_equations.hpp.
|
inline |
Ctor, initializes all clip equations as
Definition at line 75 of file painter_clip_equations.hpp.
|
inline |
Returns the length of the data needed to encode the data. Data is padded to be multiple of 4.
Definition at line 91 of file painter_clip_equations.hpp.
Pack the values as according to clip_equations_data_offset_t
dst | place to which to pack data |
Each element of m_clip_equations specifies a clipping plane in 3D API clip-space as
Definition at line 103 of file painter_clip_equations.hpp.