34#define ARROW_WIDTH (2.0f * U.pixelsize)
35#define DASH_WIDTH (1.0f)
36#define DASH_LENGTH (8.0f * DASH_WIDTH * U.pixelsize)
60 immVertex2f(pos_id, offset + length + adjust, adjust);
68 immVertex2f(pos_id, adjust, offset + length + adjust);
105 float viewport_size[4];
117 immUniform2f(
"viewport_size", viewport_size[2], viewport_size[3]);
155 const int *data =
static_cast<const int *
>(t->
mouse.
data);
156 const float angle = -
atan2f(data[2] - data[0], data[3] - data[1]);
164 float angle =
atan2f(tmval[1] - cent[1], tmval[0] - cent[0]);
ARegion * CTX_wm_region(const bContext *C)
@ V3D_PROJ_TEST_CLIP_ZERO
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_blend(eGPUBlend blend)
void GPU_line_width(float width)
void GPU_line_smooth(bool enable)
void GPU_viewport_size_get_f(float coords[4])
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])
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
draw_view in_light_buf[] float