Blender V4.3
blender::draw::overlay::Resources Struct Reference

#include <overlay_next_private.hh>

Inherits blender::draw::select::SelectMap.

Public Member Functions

 Resources (const SelectionType selection_type_, ShaderModule &shader_module)
 
 ~Resources ()
 
void begin_sync ()
 
ThemeColorID object_wire_theme_id (const ObjectRef &ob_ref, const State &state) const
 
const float4object_wire_color (const ObjectRef &ob_ref, ThemeColorID theme_id) const
 
const float4object_wire_color (const ObjectRef &ob_ref, const State &state) const
 
float4 background_blend_color (ThemeColorID theme_id) const
 
float4 object_background_blend_color (const ObjectRef &ob_ref, const State &state) const
 
float4 background_color_get (const State &state)
 
void free_movieclips_textures ()
 
- Public Member Functions inherited from blender::draw::select::SelectMap
 SelectMap (const SelectionType selection_type)
 
const ID select_id (const ObjectRef &ob_ref, uint sub_object_id=0)
 
void begin_sync ()
 
void select_bind (PassSimple &pass)
 
void select_bind (PassMain &pass)
 
void select_bind (PassMain &pass, PassMain::Sub &sub)
 
void end_sync ()
 
void read_result ()
 

Public Attributes

ShaderModuleshaders
 
Framebuffer overlay_color_only_fb = {"overlay_color_only_fb"}
 
Framebuffer overlay_line_only_fb = {"overlay_line_only_fb"}
 
Framebuffer overlay_fb = {"overlay_fb"}
 
Framebuffer overlay_line_fb = {"overlay_line_fb"}
 
Framebuffer overlay_in_front_fb = {"overlay_in_front_fb"}
 
Framebuffer overlay_line_in_front_fb = {"overlay_line_in_front_fb"}
 
Framebuffer overlay_output_fb = {"overlay_output_fb"}
 
GPUFrameBuffer * render_fb = nullptr
 
GPUFrameBuffer * render_in_front_fb = nullptr
 
TextureFromPool line_tx = {"line_tx"}
 
TextureFromPool overlay_tx = {"overlay_tx"}
 
TextureFromPool xray_depth_tx = {"xray_depth_tx"}
 
TextureFromPool depth_in_front_alloc_tx = {"overlay_depth_in_front_tx"}
 
TextureFromPool color_overlay_alloc_tx = {"overlay_color_overlay_alloc_tx"}
 
TextureFromPool color_render_alloc_tx = {"overlay_color_render_alloc_tx"}
 
Texture dummy_depth_tx = {"dummy_depth_tx"}
 
GlobalsUboStorage theme_settings
 
GPUUniformBuf * globals_buf
 
TextureRef weight_ramp_tx
 
TextureRef depth_in_front_tx
 
TextureRef color_overlay_tx
 
TextureRef color_render_tx
 
TextureRef depth_tx
 
TextureRef depth_target_tx
 
TextureRef depth_target_in_front_tx
 
Vector< MovieClip * > bg_movie_clips
 
- Public Attributes inherited from blender::draw::select::SelectMap
const SelectionType selection_type
 
Vector< uintselect_id_map
 
Vector< std::string > map_names
 
StorageArrayBuffer< uintselect_output_buf = {"select_output_buf"}
 
StorageArrayBuffer< uint, 4, truedummy_select_buf = {"dummy_select_buf"}
 
UniformBuffer< SelectInfoDatainfo_buf
 
bool disable_depth_test = false
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::draw::select::SelectMap
static const ID select_invalid_id ()
 

Detailed Description

Definition at line 325 of file overlay_next_private.hh.

Constructor & Destructor Documentation

◆ Resources()

blender::draw::overlay::Resources::Resources ( const SelectionType selection_type_,
ShaderModule & shader_module )
inline

Definition at line 392 of file overlay_next_private.hh.

References select().

◆ ~Resources()

blender::draw::overlay::Resources::~Resources ( )
inline

Definition at line 395 of file overlay_next_private.hh.

References free_movieclips_textures().

Member Function Documentation

◆ background_blend_color()

float4 blender::draw::overlay::Resources::background_blend_color ( ThemeColorID theme_id) const
inline

Definition at line 478 of file overlay_next_private.hh.

References TH_BACK, and UI_GetThemeColorBlendShade4fv().

Referenced by object_background_blend_color().

◆ background_color_get()

float4 blender::draw::overlay::Resources::background_color_get ( const State & state)
inline

◆ begin_sync()

void blender::draw::overlay::Resources::begin_sync ( )
inline

◆ free_movieclips_textures()

void blender::draw::overlay::Resources::free_movieclips_textures ( )
inline

Definition at line 506 of file overlay_next_private.hh.

References bg_movie_clips, and BKE_movieclip_free_gputexture().

Referenced by begin_sync(), and ~Resources().

◆ object_background_blend_color()

float4 blender::draw::overlay::Resources::object_background_blend_color ( const ObjectRef & ob_ref,
const State & state ) const
inline

◆ object_wire_color() [1/2]

const float4 & blender::draw::overlay::Resources::object_wire_color ( const ObjectRef & ob_ref,
const State & state ) const
inline

Definition at line 472 of file overlay_next_private.hh.

References object_wire_color(), object_wire_theme_id(), and state.

◆ object_wire_color() [2/2]

◆ object_wire_theme_id()

Member Data Documentation

◆ bg_movie_clips

Vector<MovieClip *> blender::draw::overlay::Resources::bg_movie_clips

Definition at line 390 of file overlay_next_private.hh.

Referenced by free_movieclips_textures().

◆ color_overlay_alloc_tx

TextureFromPool blender::draw::overlay::Resources::color_overlay_alloc_tx = {"overlay_color_overlay_alloc_tx"}

Definition at line 359 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ color_overlay_tx

TextureRef blender::draw::overlay::Resources::color_overlay_tx

Definition at line 372 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ color_render_alloc_tx

TextureFromPool blender::draw::overlay::Resources::color_render_alloc_tx = {"overlay_color_render_alloc_tx"}

Definition at line 360 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ color_render_tx

TextureRef blender::draw::overlay::Resources::color_render_tx

◆ depth_in_front_alloc_tx

TextureFromPool blender::draw::overlay::Resources::depth_in_front_alloc_tx = {"overlay_depth_in_front_tx"}

Definition at line 358 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ depth_in_front_tx

TextureRef blender::draw::overlay::Resources::depth_in_front_tx

◆ depth_target_in_front_tx

TextureRef blender::draw::overlay::Resources::depth_target_in_front_tx

Definition at line 388 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ depth_target_tx

TextureRef blender::draw::overlay::Resources::depth_target_tx

Depth target. Can either be default depth buffer texture from DefaultTextureList or xray_depth_tx if X-ray is enabled.

Definition at line 387 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ depth_tx

◆ dummy_depth_tx

◆ globals_buf

GPUUniformBuf* blender::draw::overlay::Resources::globals_buf

Definition at line 368 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::AntiAliasing::begin_sync(), blender::draw::overlay::Armatures::begin_sync(), blender::draw::overlay::Background::begin_sync(), blender::draw::overlay::Cameras::begin_sync(), blender::draw::overlay::Curves::begin_sync(), blender::draw::overlay::Empties::begin_sync(), blender::draw::overlay::Facing::begin_sync(), blender::draw::overlay::GreasePencil::begin_sync(), blender::draw::overlay::Grid::begin_sync(), blender::draw::overlay::Lattices::begin_sync(), blender::draw::overlay::LightProbes::begin_sync(), blender::draw::overlay::Meshes::begin_sync(), blender::draw::overlay::MeshUVs::begin_sync(), blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::MotionPath::begin_sync(), blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Paints::begin_sync(), blender::draw::overlay::Particles::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), blender::draw::overlay::Sculpts::begin_sync(), blender::draw::overlay::Wireframe::begin_sync(), blender::draw::overlay::Bounds::end_sync(), blender::draw::overlay::Cameras::end_sync(), blender::draw::overlay::EditText::end_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Fluids::end_sync(), blender::draw::overlay::ForceFields::end_sync(), blender::draw::overlay::LightProbes::end_sync(), blender::draw::overlay::Lights::end_sync(), blender::draw::overlay::Metaballs::end_sync(), blender::draw::overlay::Origins::end_sync(), blender::draw::overlay::Relations::end_sync(), blender::draw::overlay::Speakers::end_sync(), and blender::draw::overlay::Instance::init().

◆ line_tx

TextureFromPool blender::draw::overlay::Resources::line_tx = {"line_tx"}

◆ overlay_color_only_fb

Framebuffer blender::draw::overlay::Resources::overlay_color_only_fb = {"overlay_color_only_fb"}

◆ overlay_fb

Framebuffer blender::draw::overlay::Resources::overlay_fb = {"overlay_fb"}

Definition at line 333 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ overlay_in_front_fb

Framebuffer blender::draw::overlay::Resources::overlay_in_front_fb = {"overlay_in_front_fb"}

Definition at line 337 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ overlay_line_fb

Framebuffer blender::draw::overlay::Resources::overlay_line_fb = {"overlay_line_fb"}

Definition at line 335 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ overlay_line_in_front_fb

Framebuffer blender::draw::overlay::Resources::overlay_line_in_front_fb = {"overlay_line_in_front_fb"}

Definition at line 339 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ overlay_line_only_fb

Framebuffer blender::draw::overlay::Resources::overlay_line_only_fb = {"overlay_line_only_fb"}

◆ overlay_output_fb

Framebuffer blender::draw::overlay::Resources::overlay_output_fb = {"overlay_output_fb"}

Definition at line 342 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ overlay_tx

TextureFromPool blender::draw::overlay::Resources::overlay_tx = {"overlay_tx"}

◆ render_fb

GPUFrameBuffer* blender::draw::overlay::Resources::render_fb = nullptr

Definition at line 346 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ render_in_front_fb

GPUFrameBuffer* blender::draw::overlay::Resources::render_in_front_fb = nullptr

Definition at line 347 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::Instance::draw().

◆ shaders

ShaderModule& blender::draw::overlay::Resources::shaders

Definition at line 326 of file overlay_next_private.hh.

Referenced by blender::draw::overlay::AntiAliasing::begin_sync(), blender::draw::overlay::Armatures::begin_sync(), blender::draw::overlay::AttributeViewer::begin_sync(), blender::draw::overlay::Background::begin_sync(), blender::draw::overlay::Cameras::begin_sync(), blender::draw::overlay::Curves::begin_sync(), blender::draw::overlay::Empties::begin_sync(), blender::draw::overlay::Facing::begin_sync(), blender::draw::overlay::Fade::begin_sync(), blender::draw::overlay::Fluids::begin_sync(), blender::draw::overlay::GreasePencil::begin_sync(), blender::draw::overlay::Grid::begin_sync(), blender::draw::overlay::Lattices::begin_sync(), blender::draw::overlay::LightProbes::begin_sync(), blender::draw::overlay::Meshes::begin_sync(), blender::draw::overlay::MeshUVs::begin_sync(), blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::MotionPath::begin_sync(), blender::draw::overlay::Outline::begin_sync(), blender::draw::overlay::Paints::begin_sync(), blender::draw::overlay::Particles::begin_sync(), blender::draw::overlay::Prepass::begin_sync(), blender::draw::overlay::Sculpts::begin_sync(), blender::draw::overlay::Wireframe::begin_sync(), blender::draw::overlay::XrayFade::begin_sync(), blender::draw::overlay::Bounds::end_sync(), blender::draw::overlay::Cameras::end_sync(), blender::draw::overlay::EditText::end_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Fluids::end_sync(), blender::draw::overlay::ForceFields::end_sync(), blender::draw::overlay::LightProbes::end_sync(), blender::draw::overlay::Lights::end_sync(), blender::draw::overlay::MeshUVs::end_sync(), blender::draw::overlay::Metaballs::end_sync(), blender::draw::overlay::Origins::end_sync(), blender::draw::overlay::Relations::end_sync(), and blender::draw::overlay::Speakers::end_sync().

◆ theme_settings

◆ weight_ramp_tx

◆ xray_depth_tx

TextureFromPool blender::draw::overlay::Resources::xray_depth_tx = {"xray_depth_tx"}

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