Blender
V3.3
|
#include "BLI_listbase.h"
#include "BKE_context.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "GPU_batch.h"
#include "GPU_immediate.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "gizmo_library_intern.h"
Go to the source code of this file.
Functions | |
void | wm_gizmo_geometryinfo_draw (const GizmoGeomInfo *info, const bool UNUSED(select), const float color[4]) |
void | wm_gizmo_vec_draw (const float color[4], const float(*verts)[3], uint vert_count, uint pos, uint primitive_type) |
void wm_gizmo_geometryinfo_draw | ( | const GizmoGeomInfo * | info, |
const bool | UNUSEDselect, | ||
const float | color[4] | ||
) |
Definition at line 31 of file gizmo_draw_utils.c.
References batch, color, GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_batch_program_set_builtin(), GPU_batch_uniform_4fv, GPU_COMP_F32, GPU_CULL_BACK, GPU_CULL_NONE, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_face_culling(), GPU_FETCH_FLOAT, GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), GPUBatch, GizmoGeomInfo::indices, GizmoGeomInfo::ntris, GizmoGeomInfo::nverts, and GizmoGeomInfo::verts.
Referenced by arrow_draw_geom(), dial_geom_draw(), ed_gizmo_draw_preset_geometry(), and move_geom_draw().
void wm_gizmo_vec_draw | ( | const float | color[4], |
const float(*) | verts[3], | ||
uint | vert_count, | ||
uint | pos, | ||
uint | primitive_type | ||
) |
Definition at line 81 of file gizmo_draw_utils.c.
References color, GPU_PRIM_LINE_LOOP, GPU_PRIM_LINES, GPU_PRIM_TRI_FAN, GPU_PRIM_TRIS, immBegin(), immEnd(), immUniformColor4fv(), immVertex3fv(), pos, and verts.
Referenced by arrow_draw_geom(), and gizmo_primitive_draw_geom().