Blender V4.3
blender::workbench::ObjectState Struct Reference

#include <workbench_private.hh>

Public Member Functions

 ObjectState (const SceneState &scene_state, const SceneResources &resources, Object *ob)
 

Public Attributes

eV3DShadingColorType color_type = V3D_SHADING_SINGLE_COLOR
 
MaterialTexture image_paint_override = {}
 
bool show_missing_texture = false
 
bool draw_shadow = false
 
bool use_per_material_batches = false
 
bool sculpt_pbvh = false
 

Detailed Description

Definition at line 197 of file workbench_private.hh.

Constructor & Destructor Documentation

◆ ObjectState()

blender::workbench::ObjectState::ObjectState ( const SceneState & scene_state,
const SceneResources & resources,
Object * ob )

Definition at line 203 of file workbench_state.cc.

References BKE_sculptsession_use_pbvh_draw(), ImagePaintSettings::canvas, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT2, color_type, View3DShading::color_type, CTX_MODE_PAINT_TEXTURE, CTX_MODE_PAINT_VERTEX, CustomData_has_layer(), Object::data, draw_shadow, blender::workbench::SceneState::draw_shadows, DRW_context_state_get(), DRW_object_use_hide_faces(), DRW_state_is_image_render(), DRW_state_is_scene_render(), Object::dt, Object::dtx, ED_paint_shading_color_override(), ELEM, DRWContextState::evil_C, GPUSamplerState::extend_x, GPUSamplerState::extend_yz, blender::workbench::get_loop_custom_data(), blender::workbench::get_vert_custom_data(), blender::workbench::MaterialTexture::gpu, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_SAMPLER_FILTERING_LINEAR, image_paint_override, IMAGEPAINT_INTERP_LINEAR, IMAGEPAINT_MODE_IMAGE, ToolSettings::imapaint, ImagePaintSettings::interp, blender::bke::pbvh::Mesh, blender::workbench::SceneResources::missing_texture, ImagePaintSettings::mode, OB_DRAW_NO_SHADOW_CAST, OB_MESH, OB_TEXTURE, DRWContextState::obact, blender::workbench::SceneState::object_mode, ToolSettings::paint_mode, blender::bke::object::pbvh_get(), DRWContextState::rv3d, blender::workbench::MaterialTexture::sampler_state, blender::workbench::SceneState::scene, sculpt_pbvh, GPUSamplerState::set_filtering_flag_from_test(), blender::workbench::SceneState::shading, show_missing_texture, ImageGPUTextures::texture, Scene::toolsettings, blender::bke::pbvh::Tree::type(), Object::type, use_per_material_batches, V3D_SHADING_MATERIAL_COLOR, V3D_SHADING_OBJECT_COLOR, V3D_SHADING_TEXTURE_COLOR, and V3D_SHADING_VERTEX_COLOR.

Member Data Documentation

◆ color_type

◆ draw_shadow

bool blender::workbench::ObjectState::draw_shadow = false

Definition at line 201 of file workbench_private.hh.

Referenced by blender::workbench::Instance::mesh_sync(), and ObjectState().

◆ image_paint_override

MaterialTexture blender::workbench::ObjectState::image_paint_override = {}

◆ sculpt_pbvh

bool blender::workbench::ObjectState::sculpt_pbvh = false

Definition at line 203 of file workbench_private.hh.

Referenced by blender::workbench::Instance::object_sync(), and ObjectState().

◆ show_missing_texture

bool blender::workbench::ObjectState::show_missing_texture = false

◆ use_per_material_batches

bool blender::workbench::ObjectState::use_per_material_batches = false

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