34#define ARROW_WIDTH (2.0f * U.pixelsize)
35#define DASH_WIDTH (1.0f)
36#define DASH_LENGTH (8.0f * DASH_WIDTH * U.pixelsize)
108 float viewport_size[4];
137 immUniform2f(
"viewport_size", viewport_size[2], viewport_size[3]);
152 immVertex2f(pos_id, cent[0] -
U.pixelsize, cent[1] +
U.pixelsize);
153 immVertex2f(pos_id, tmval[0] -
U.pixelsize, tmval[1] +
U.pixelsize);
212 float angle =
atan2f(tmval[1] - cent[1], tmval[0] - cent[0]);
Scene * CTX_data_scene(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
@ V3D_PROJ_TEST_CLIP_ZERO
void ED_view3d_text_colors_get(const Scene *scene, const View3D *v3d, float r_text_color[4], float r_shadow_color[4])
void GPU_matrix_rotate_axis(float deg, char axis)
void GPU_matrix_translate_3f(float x, float y, float z)
@ GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR
@ GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR
void GPU_line_width(float width)
void GPU_line_smooth(bool enable)
void GPU_blend(GPUBlend blend)
void GPU_viewport_size_get_f(float coords[4])
static double angle(const Eigen::Vector3d &v1, const Eigen::Vector3d &v2)
void UI_GetThemeColor3fv(int colorid, float col[3])
void UI_GetThemeColor3ubv(int colorid, unsigned char col[3])
void UI_make_axis_color(const unsigned char col[3], char axis, unsigned char r_col[3])
BMesh const char void * data
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
float length(VecOp< float, D >) RET
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2