Blender V4.3
overlay_next_shape.cc File Reference

Go to the source code of this file.

Classes

struct  blender::draw::overlay::Vertex
 
struct  blender::draw::overlay::VertShaded
 
struct  blender::draw::overlay::VertexTriple
 

Namespaces

namespace  blender
 
namespace  blender::draw
 
namespace  blender::draw::overlay
 

Enumerations

enum  blender::draw::overlay::VertexClass {
  blender::draw::overlay::VCLASS_NONE = 0 , blender::draw::overlay::VCLASS_LIGHT_AREA_SHAPE = 1 << 0 , blender::draw::overlay::VCLASS_LIGHT_SPOT_SHAPE = 1 << 1 , blender::draw::overlay::VCLASS_LIGHT_SPOT_BLEND = 1 << 2 ,
  blender::draw::overlay::VCLASS_LIGHT_SPOT_CONE = 1 << 3 , blender::draw::overlay::VCLASS_LIGHT_DIST = 1 << 4 , blender::draw::overlay::VCLASS_CAMERA_FRAME = 1 << 5 , blender::draw::overlay::VCLASS_CAMERA_DIST = 1 << 6 ,
  blender::draw::overlay::VCLASS_CAMERA_VOLUME = 1 << 7 , blender::draw::overlay::VCLASS_SCREENSPACE = 1 << 8 , blender::draw::overlay::VCLASS_SCREENALIGNED = 1 << 9 , blender::draw::overlay::VCLASS_EMPTY_SCALED = 1 << 10 ,
  blender::draw::overlay::VCLASS_EMPTY_AXES = 1 << 11 , blender::draw::overlay::VCLASS_EMPTY_AXES_NAME = 1 << 12 , blender::draw::overlay::VCLASS_EMPTY_AXES_SHADOW = 1 << 13 , blender::draw::overlay::VCLASS_EMPTY_SIZE = 1 << 14
}
 

Functions

static gpu::VertBufblender::draw::overlay::vbo_from_vector (const Vector< Vertex > &vector)
 
static gpu::VertBufblender::draw::overlay::vbo_from_vector (Vector< VertShaded > &vector)
 
static gpu::VertBufblender::draw::overlay::vbo_from_vector (Vector< VertexTriple > &vector)
 
static void blender::draw::overlay::append_line_loop (Vector< Vertex > &dest, Span< float2 > verts, float z, int flag, bool dashed=false)
 
static float blender::draw::overlay::light_distance_z_get (char axis, const bool start)
 
static Vector< float2blender::draw::overlay::ring_vertices (const float radius, const int segments, const bool half=false)
 
static Vector< Vertexblender::draw::overlay::sphere_axes_circles (const float radius, const VertexClass vclass, const int segments)
 
static void blender::draw::overlay::light_append_direction_line (const char axis, Span< float2 > diamond, Vector< Vertex > &verts)
 
static void blender::draw::overlay::light_append_direction_line (Vector< Vertex > &verts)
 
static VertShaded blender::draw::overlay::sphere_lat_lon_vert (const float2 &lat_pt, const float2 &lon_pt)
 
static void blender::draw::overlay::append_sphere (Vector< VertShaded > &dest, const eDRWLevelOfDetail level_of_detail)
 

Variables

static constexpr int blender::draw::overlay::diamond_nsegments = 4
 
static constexpr int blender::draw::overlay::inner_nsegments = 8
 
static constexpr int blender::draw::overlay::outer_nsegments = 10
 
static constexpr int blender::draw::overlay::circle_nsegments = 32
 
static constexpr float blender::draw::overlay::bone_box_verts [8][3]
 
static constexpr std::array< uint, 24 > blender::draw::overlay::bone_box_wire_lines
 
static const std::array< uint3, 12 > blender::draw::overlay::bone_box_solid_tris
 
static const std::array< uint4, 12 > blender::draw::overlay::bone_box_wire_lines_adjacency
 
static const std::array< float3, 12 > blender::draw::overlay::bone_box_solid_normals
 
static const std::array< float3, 6 > blender::draw::overlay::bone_octahedral_verts
 
static const std::array< float3, 6 > blender::draw::overlay::bone_octahedral_smooth_normals
 
static const std::array< uint2, 12 > blender::draw::overlay::bone_octahedral_wire_lines
 
static const std::array< uint3, 8 > blender::draw::overlay::bone_octahedral_solid_tris
 
static const std::array< uint4, 12 > blender::draw::overlay::bone_octahedral_wire_lines_adjacency
 
static const float blender::draw::overlay::bone_octahedral_solid_normals [8][3]