Blender V5.0
blender::draw::overlay::BoneInstanceData Struct Reference

#include <overlay_private.hh>

Public Member Functions

 BoneInstanceData ()=default
 BoneInstanceData (const float4x4 &ob_mat, const float3 &pos, const float radius, const float color[4])
 BoneInstanceData (const float4x4 &bone_mat, const float4 &bone_color, const float4 &hint_color)
 BoneInstanceData (const float4x4 &bone_mat, const float4 &bone_color)
void set_color (const float4 &bone_color)
void set_hint_color (const float4 &hint_color)

Public Attributes

union { 
   float4x4   mat44 
   float   mat [4][4] 
   struct { 
      float   _pad0 [3] 
      float   color_hint_a 
      float   _pad1 [3] 
      float   color_hint_b 
      float   _pad2 [3] 
      float   color_a 
      float   _pad3 [3] 
      float   color_b 
   } 
   struct { 
      float   _pad00 [3] 
      float   amin_a 
      float   _pad01 [3] 
      float   amin_b 
      float   _pad02 [3] 
      float   amax_a 
      float   _pad03 [3] 
      float   amax_b 
   } 
}; 

Detailed Description

Definition at line 44 of file overlay_private.hh.

Constructor & Destructor Documentation

◆ BoneInstanceData() [1/4]

blender::draw::overlay::BoneInstanceData::BoneInstanceData ( )
default

◆ BoneInstanceData() [2/4]

blender::draw::overlay::BoneInstanceData::BoneInstanceData ( const float4x4 & ob_mat,
const float3 & pos,
const float radius,
const float color[4] )
inline

Constructor used by meta-ball overlays and expected to be used for drawing meta-ball edit circles with armature wire shader that produces wide-lines.

Definition at line 69 of file overlay_private.hh.

References mat44, pos, set_color(), and blender::math::transform_point().

◆ BoneInstanceData() [3/4]

blender::draw::overlay::BoneInstanceData::BoneInstanceData ( const float4x4 & bone_mat,
const float4 & bone_color,
const float4 & hint_color )
inline

Definition at line 82 of file overlay_private.hh.

References mat44, set_color(), and set_hint_color().

◆ BoneInstanceData() [4/4]

blender::draw::overlay::BoneInstanceData::BoneInstanceData ( const float4x4 & bone_mat,
const float4 & bone_color )
inline

Definition at line 89 of file overlay_private.hh.

References mat44, and set_color().

Member Function Documentation

◆ set_color()

void blender::draw::overlay::BoneInstanceData::set_color ( const float4 & bone_color)
inline

◆ set_hint_color()

void blender::draw::overlay::BoneInstanceData::set_hint_color ( const float4 & hint_color)
inline

Member Data Documentation

◆ [union]

◆ _pad0

float blender::draw::overlay::BoneInstanceData::_pad0[3]

Definition at line 50 of file overlay_private.hh.

◆ _pad00

float blender::draw::overlay::BoneInstanceData::_pad00[3]

Definition at line 56 of file overlay_private.hh.

◆ _pad01

float blender::draw::overlay::BoneInstanceData::_pad01[3]

Definition at line 57 of file overlay_private.hh.

◆ _pad02

float blender::draw::overlay::BoneInstanceData::_pad02[3]

Definition at line 58 of file overlay_private.hh.

◆ _pad03

float blender::draw::overlay::BoneInstanceData::_pad03[3]

Definition at line 59 of file overlay_private.hh.

◆ _pad1

float blender::draw::overlay::BoneInstanceData::_pad1[3]

Definition at line 51 of file overlay_private.hh.

◆ _pad2

float blender::draw::overlay::BoneInstanceData::_pad2[3]

Definition at line 52 of file overlay_private.hh.

◆ _pad3

float blender::draw::overlay::BoneInstanceData::_pad3[3]

Definition at line 53 of file overlay_private.hh.

◆ amax_a

float blender::draw::overlay::BoneInstanceData::amax_a

Definition at line 58 of file overlay_private.hh.

◆ amax_b

float blender::draw::overlay::BoneInstanceData::amax_b

Definition at line 59 of file overlay_private.hh.

◆ amin_a

float blender::draw::overlay::BoneInstanceData::amin_a

Definition at line 56 of file overlay_private.hh.

◆ amin_b

float blender::draw::overlay::BoneInstanceData::amin_b

Definition at line 57 of file overlay_private.hh.

◆ color_a

float blender::draw::overlay::BoneInstanceData::color_a

Definition at line 52 of file overlay_private.hh.

Referenced by set_color().

◆ color_b

float blender::draw::overlay::BoneInstanceData::color_b

Definition at line 53 of file overlay_private.hh.

Referenced by set_color().

◆ color_hint_a

float blender::draw::overlay::BoneInstanceData::color_hint_a

Definition at line 50 of file overlay_private.hh.

Referenced by set_hint_color().

◆ color_hint_b

float blender::draw::overlay::BoneInstanceData::color_hint_b

Definition at line 51 of file overlay_private.hh.

Referenced by set_hint_color().

◆ mat

float blender::draw::overlay::BoneInstanceData::mat[4][4]

Definition at line 48 of file overlay_private.hh.

Referenced by drw_shgroup_bone_envelope().

◆ mat44


The documentation for this struct was generated from the following file: