|
Blender V4.3
|
#include "DRW_render.hh"#include "BKE_global.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BKE_paint.hh"#include "BKE_particle.h"#include "BLI_alloca.h"#include "DNA_particle_types.h"#include "GPU_shader.hh"#include "basic_engine.h"#include "basic_private.h"Go to the source code of this file.
Classes | |
| struct | BASIC_StorageList |
| struct | BASIC_PassList |
| struct | BASIC_Data |
| struct | BASIC_PrivateData |
Macros | |
| #define | BASIC_ENGINE "BLENDER_BASIC" |
Functions | |
| static void | basic_cache_init (void *vedata) |
| static blender::gpu::Batch ** | basic_object_surface_material_get (Object *ob) |
| static void | basic_cache_populate_particles (void *vedata, Object *ob) |
| static void | basic_cache_populate (void *vedata, Object *ob) |
| static void | basic_cache_finish (void *vedata) |
| static void | basic_draw_scene (void *vedata) |
| static void | basic_engine_free () |
Variables | |
| static const DrawEngineDataSize | basic_data_size = DRW_VIEWPORT_DATA_SIZE(BASIC_Data) |
| DrawEngineType | draw_engine_basic_type |
Simple engine for drawing color and/or depth. When we only need simple flat shaders.
Definition in file basic_engine.cc.
| #define BASIC_ENGINE "BLENDER_BASIC" |
Definition at line 29 of file basic_engine.cc.
|
static |
Definition at line 243 of file basic_engine.cc.
References UNUSED_VARS.
|
static |
Definition at line 64 of file basic_engine.cc.
References BASIC_shaders_curves_depth_sh_get(), BASIC_shaders_depth_conservative_sh_get(), BASIC_shaders_depth_sh_get(), BASIC_shaders_pointcloud_depth_conservative_sh_get(), BASIC_shaders_pointcloud_depth_sh_get(), DRW_Global::block_ubo, BASIC_PrivateData::depth_curves_shgrp, BASIC_PrivateData::depth_hair_shgrp, BASIC_PassList::depth_pass, BASIC_PassList::depth_pass_cull, BASIC_PassList::depth_pass_pointcloud, BASIC_PrivateData::depth_pointcloud_shgrp, BASIC_PrivateData::depth_shgrp, BASIC_PrivateData::depth_shgrp_cull, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_CLIP_PLANES, DRW_STATE_CULL_BACK, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_material_select(), DRW_state_is_select(), DRW_STATE_NO_DRAW, DRW_STATE_WRITE_DEPTH, BASIC_StorageList::g_data, G_draw, GPU_SHADER_CFG_CLIPPED, MEM_callocN, DRWContextState::sh_cfg, state, and BASIC_PrivateData::use_material_slot_selection.
|
static |
Definition at line 155 of file basic_engine.cc.
References basic_cache_populate_particles(), basic_object_surface_material_get(), BKE_object_supports_material_slots(), BKE_pbvh_draw_debug_cb(), BKE_sculptsession_use_pbvh_draw(), BASIC_PrivateData::depth_curves_shgrp, BASIC_PrivateData::depth_pointcloud_shgrp, BASIC_PrivateData::depth_shgrp, BASIC_PrivateData::depth_shgrp_cull, DRW_cache_object_all_edges_get(), DRW_cache_object_material_count_get(), DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_debug_modelmat(), DRW_object_axis_orthogonal_to_view(), DRW_object_is_flat(), DRW_object_is_renderable(), DRW_sculpt_debug_cb(), DRW_select_load_id(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), DRW_state_is_image_render(), Object::dt, Object::dtx, View3DOverlay::flag, View3DShading::flag, G, BASIC_StorageList::g_data, OB_CURVES, OB_DRAW_IN_FRONT, OB_DRAWWIRE, OB_POINTCLOUD, OB_SOLID, OB_WIRE, DRWContextState::object_edit, View3D::overlay, blender::bke::object::pbvh_get(), RegionView3D::persp, Object::runtime, DRWContextState::rv3d, RV3D_ORTHO, Object::sculpt, View3D::shading, Object::type, View3DShading::type, BASIC_PrivateData::use_material_slot_selection, DRWContextState::v3d, V3D_OVERLAY_WIREFRAMES, and V3D_SHADING_BACKFACE_CULLING.
|
static |
Definition at line 131 of file basic_engine.cc.
References BASIC_PrivateData::depth_hair_shgrp, DRW_cache_particles_get_hair(), DRW_object_is_visible_psys_in_active_context(), DRW_select_load_id(), DRW_shgroup_call, Object::dtx, ListBase::first, BASIC_StorageList::g_data, ParticleSystem::next, OB_DRAW_IN_FRONT, PART_DRAW_PATH, PART_DRAW_REND, Object::particlesystem, ParticleSettings::ren_as, Object::runtime, and BASIC_PrivateData::use_material_slot_selection.
Referenced by basic_cache_populate().
|
static |
Definition at line 250 of file basic_engine.cc.
References BASIC_PassList::depth_pass, BASIC_PassList::depth_pass_cull, BASIC_PassList::depth_pass_pointcloud, and DRW_draw_pass().
|
static |
Definition at line 262 of file basic_engine.cc.
References BASIC_shaders_free().
|
static |
Definition at line 122 of file basic_engine.cc.
References BLI_array_alloca, DRW_cache_object_material_count_get(), and DRW_cache_object_surface_material_get().
Referenced by basic_cache_populate().
|
static |
Definition at line 267 of file basic_engine.cc.
| DrawEngineType draw_engine_basic_type |
Definition at line 269 of file basic_engine.cc.
Referenced by drw_engines_enable_basic(), and DRW_engines_register().