|
Blender V5.0
|
Typedefs | |
| using | SelectionType = select::SelectionType |
| using | StaticShader = gpu::StaticShader |
Enumerations | |
| enum | eArmatureDrawMode { ARM_DRAW_MODE_OBJECT , ARM_DRAW_MODE_POSE , ARM_DRAW_MODE_EDIT } |
Functions | |
| static bool | is_from_dupli_or_set (const Object *ob) |
| static bool | is_from_dupli_or_set (const ObjectRef &ob_ref) |
| static void | append_line_loop (Vector< Vertex > &dest, Span< float2 > verts, float z, VertexClass flag, bool dashed=false) |
| static float | light_distance_z_get (char axis, const bool start) |
| static Vector< float2 > | ring_vertices (const float radius, const int segments, const bool half=false) |
| static Vector< Vertex > | sphere_axes_circles (const float radius, const VertexClass vclass, const int segments) |
| static void | light_append_direction_line (const char axis, Span< float2 > diamond, Vector< Vertex > &verts) |
| static void | light_append_direction_line (Vector< Vertex > &verts) |
| static VertShaded | sphere_lat_lon_vert (const float2 &lat_pt, const float2 &lon_pt) |
| static void | append_sphere (Vector< VertShaded > &dest, const eDRWLevelOfDetail level_of_detail) |
Variables | |
| constexpr int | overlay_edit_text |
| static constexpr int | diamond_nsegments = 4 |
| static constexpr int | inner_nsegments = 8 |
| static constexpr int | outer_nsegments = 10 |
| static constexpr int | circle_nsegments = 32 |
| static constexpr float | bone_box_verts [8][3] |
| static constexpr std::array< uint, 24 > | bone_box_wire_lines |
| static const std::array< uint3, 12 > | bone_box_solid_tris |
| static const std::array< uint4, 12 > | bone_box_wire_lines_adjacency |
| static const std::array< float3, 12 > | bone_box_solid_normals |
| static const std::array< float3, 6 > | bone_octahedral_verts |
| static const std::array< float3, 6 > | bone_octahedral_smooth_normals |
| static const std::array< uint2, 12 > | bone_octahedral_wire_lines |
| static const std::array< uint3, 8 > | bone_octahedral_solid_tris |
| static const std::array< uint4, 12 > | bone_octahedral_wire_lines_adjacency |
| static const float | bone_octahedral_solid_normals [8][3] |
Definition at line 117 of file overlay_private.hh.
Definition at line 423 of file overlay_private.hh.
| Enumerator | |
|---|---|
| ARM_DRAW_MODE_OBJECT | |
| ARM_DRAW_MODE_POSE | |
| ARM_DRAW_MODE_EDIT | |
Definition at line 23 of file overlay_armature.hh.
|
static |
Definition at line 186 of file overlay_shape.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), flag, i, blender::math::step(), verts, and z().
Referenced by light_append_direction_line(), and blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 284 of file overlay_shape.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, blender::draw::DRW_LOD_LOW, blender::draw::DRW_LOD_MAX, i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::IndexRange::last(), ring_vertices(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and sphere_lat_lon_vert().
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
inlinestatic |
Definition at line 1187 of file overlay_private.hh.
References Object::base_flag, BASE_FROM_DUPLI, and BASE_FROM_SET.
Referenced by blender::draw::overlay::Armatures::draw_armature_pose(), is_from_dupli_or_set(), blender::draw::overlay::Axes::object_sync(), blender::draw::overlay::Bounds::object_sync(), blender::draw::overlay::Fluids::object_sync(), blender::draw::overlay::Names::object_sync(), blender::draw::overlay::Origins::object_sync(), and blender::draw::overlay::Relations::object_sync().
|
inlinestatic |
Definition at line 1194 of file overlay_private.hh.
References is_from_dupli_or_set(), and blender::draw::ObjectRef::object.
|
static |
Definition at line 258 of file overlay_shape.cc.
References append_line_loop(), light_distance_z_get(), VCLASS_LIGHT_DIST, VCLASS_SCREENSPACE, and verts.
Referenced by light_append_direction_line(), and blender::draw::overlay::ShapeCache::ShapeCache().
Definition at line 270 of file overlay_shape.cc.
References diamond_nsegments, light_append_direction_line(), ring_vertices(), and verts.
|
static |
Definition at line 198 of file overlay_shape.cc.
Referenced by light_append_direction_line().
|
static |
Definition at line 218 of file overlay_shape.cc.
References angle(), blender::math::cos(), blender::math::numbers::pi, blender::math::sin(), and verts.
Referenced by append_sphere(), light_append_direction_line(), blender::draw::overlay::ShapeCache::ShapeCache(), and sphere_axes_circles().
|
static |
Definition at line 232 of file overlay_shape.cc.
References i, ring_vertices(), and verts.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 276 of file overlay_shape.cc.
References VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by append_sphere().
|
static |
Definition at line 76 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 36 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 21 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 32 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Store indices of generated verts from bone_box_solid_tris to define adjacency information. See bone_octahedral_solid_tris for more information.
Definition at line 60 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
NOTE: This is not the correct normals. The correct smooth normals for the equator vertices should be {+-0.943608f * M_SQRT1_2, -0.331048f, +-0.943608f * M_SQRT1_2} but it creates problems for outlines when bones are scaled.
Definition at line 111 of file overlay_shape.cc.
|
static |
Definition at line 175 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 135 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 96 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 120 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Store indices of generated verts from bone_octahedral_solid_tris to define adjacency information. Example: triangle {2, 1, 0} is adjacent to {3, 2, 0}, {1, 4, 0} and {5, 1, 2}. {2, 1, 0} becomes {0, 1, 2} {3, 2, 0} becomes {3, 4, 5} {1, 4, 0} becomes {9, 10, 11} {5, 1, 2} becomes {12, 13, 14} According to opengl specification it becomes (starting from the first vertex of the first face aka. vertex 2): {0, 12, 1, 10, 2, 3}
Definition at line 159 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 19 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 16 of file overlay_shape.cc.
Referenced by light_append_direction_line(), and blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 17 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
staticconstexpr |
Definition at line 18 of file overlay_shape.cc.
Referenced by blender::draw::overlay::ShapeCache::ShapeCache().
|
constexpr |
Definition at line 38 of file overlay_mesh.hh.
Referenced by blender::draw::overlay::Meshes::edit_object_sync().