|
Blender V4.3
|
#include "GPU_batch.hh"#include "GPU_immediate.hh"#include "MEM_guardedalloc.h"#include "WM_types.hh"#include "gizmo_library_intern.hh"Go to the source code of this file.
Functions | |
| void | wm_gizmo_geometryinfo_draw (const GizmoGeomInfo *info, const bool, 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, |
| bool | select, | ||
| const float | color[4] ) |
Main draw call for GizmoGeomInfo data
Definition at line 21 of file gizmo_draw_utils.cc.
References batch, 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(), 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 68 of file gizmo_draw_utils.cc.
References 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().