Blender V5.3
draw_context.cc File Reference
#include <cstdio>
#include "CLG_log.h"
#include "BLI_enum_flags.hh"
#include "BLI_function_ref.hh"
#include "BLI_listbase.hh"
#include "BLI_map.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "BLI_string.hh"
#include "BLI_sys_types.hh"
#include "BLI_task_c.hh"
#include "BLI_threads.hh"
#include "BLF_api.hh"
#include "BLT_translation.hh"
#include "BKE_camera.h"
#include "BKE_compositor.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_curves.h"
#include "BKE_duplilist.hh"
#include "BKE_editmesh.hh"
#include "BKE_global.hh"
#include "BKE_grease_pencil.h"
#include "BKE_idprop.hh"
#include "BKE_lattice.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_mball.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_paint.hh"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_pointcloud.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BKE_subdiv_modifier.hh"
#include "BKE_volume.hh"
#include "DNA_camera_types.h"
#include "DNA_mesh_types.h"
#include "DNA_userdef_types.h"
#include "DNA_view3d_types.h"
#include "DNA_world_types.h"
#include "ED_gpencil_legacy.hh"
#include "ED_screen.hh"
#include "ED_space_api.hh"
#include "ED_view3d.hh"
#include "GPU_capabilities.hh"
#include "GPU_framebuffer.hh"
#include "GPU_immediate.hh"
#include "GPU_matrix.hh"
#include "GPU_platform.hh"
#include "GPU_shader_shared.hh"
#include "GPU_state.hh"
#include "GPU_uniform_buffer.hh"
#include "GPU_viewport.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "WM_api.hh"
#include "WM_toolsystem.hh"
#include "DRW_render.hh"
#include "draw_cache.hh"
#include "draw_color_management.hh"
#include "draw_common_c.hh"
#include "draw_context_private.hh"
#include "draw_handle.hh"
#include "draw_manager_text.hh"
#include "draw_shader.hh"
#include "draw_subdivision.hh"
#include "draw_view_c.hh"
#include "draw_view_data.hh"
#include "draw_cache_impl.hh"
#include "engines/compositor/compositor_engine.h"
#include "engines/eevee/eevee_engine.h"
#include "engines/external/external_engine.h"
#include "engines/gpencil/gpencil_engine.hh"
#include "engines/image/image_engine.h"
#include "engines/overlay/overlay_engine.h"
#include "engines/select/select_engine.hh"
#include "engines/workbench/workbench_engine.h"
#include "GPU_context.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "BLI_time.hh"
#include "DRW_select_buffer.hh"

Go to the source code of this file.

Classes

struct  blender::ExtractionGraph
struct  blender::DupliCacheManager
struct  blender::draw::InstancesKey
struct  blender::DRWSelectBuffer

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::draw

Enumerations

enum class  blender::draw::InstancesFlags : uint8_t { blender::draw::IsNegativeScale = 1 << 0 }

Functions

static bool blender::draw_show_annotation ()
static bool blender::draw::supports_handle_ranges (DupliObject *dupli, Object *parent, const DRWContext &draw_ctx)
 blender::draw::ENUM_OPERATORS (InstancesFlags)
static void blender::draw::foreach_obref_in_scene (DRWContext &draw_ctx, FunctionRef< DrawFilter(Object &, const DupliObject *dupli)> should_draw_object_cb, FunctionRef< void(ObjectRef &)> draw_object_cb)
Settings
bool blender::DRW_object_is_renderable (const Object *ob)
bool blender::DRW_object_is_in_edit_mode (const Object *ob)
int blender::DRW_object_visibility_in_active_context (const Object *ob)
bool blender::DRW_object_use_hide_faces (const Object *ob)
bool blender::DRW_object_is_visible_psys_in_active_context (const Object *object, const ParticleSystem *psys)
const Mesh * blender::DRW_object_get_editmesh_cage_for_drawing (const Object &object)
Viewport (DRW_viewport)
DRWData * blender::DRW_viewport_data_create ()
void blender::DRW_viewport_data_free (DRWData *drw_data)
static DRWData * blender::drw_viewport_data_ensure (GPUViewport *viewport)
draw::TextureFromPool & blender::DRW_viewport_pass_texture_get (const char *pass_name)
bool blender::DRW_viewport_pass_texture_exists (const char *pass_name)
void blender::DRW_viewport_request_redraw ()
Garbage Collection
void blender::DRW_cache_free_old_batches (Main *bmain)
Rendering (DRW_engines)
static void blender::drw_engines_cache_populate (draw::ObjectRef &ref, DupliCacheManager &dupli_cache, ExtractionGraph &extraction)
static void blender::drw_render_border_mask (const DRWContext &ctx)
void blender::DRW_draw_region_engine_info (int xoffset, int *yoffset, int line_height)
static bool blender::gpencil_object_is_excluded (View3D *v3d)
static bool blender::gpencil_any_exists (Depsgraph *depsgraph)
Callbacks
static void blender::drw_callbacks_pre_scene (DRWContext &draw_ctx)
static void blender::drw_callbacks_post_scene_view3d (DRWContext &draw_ctx)
static void blender::drw_callbacks_post_scene (DRWContext &draw_ctx)
static void blender::drw_callbacks_pre_scene_2D (DRWContext &draw_ctx)
static void blender::drw_callbacks_post_scene_2D (DRWContext &draw_ctx, View2D &v2d)
DRWTextStore * blender::DRW_text_cache_ensure ()
Draw Manager State
const DRWContext * blender::DRW_context_get ()
DRW_engines
void blender::DRW_engines_register ()
void blender::DRW_engines_free ()
DRW_module
void blender::DRW_module_init ()
void blender::DRW_module_exit ()

Main Draw Loops (DRW_draw)

static struct blender::DRWSelectBuffer blender::g_select_buffer = {nullptr}
static void blender::drw_draw_render_loop_3d (DRWContext &draw_ctx, RenderEngineType *engine_type)
static void blender::drw_draw_render_loop_2d (DRWContext &draw_ctx)
void blender::DRW_draw_view (const bContext *C)
void blender::DRW_draw_render_loop_offscreen (Depsgraph *depsgraph, RenderEngineType *engine_type, ARegion *region, View3D *v3d, bContext *context, bool is_image_render, bool draw_background, bool do_color_management, GPUOffScreen *ofs, GPUViewport *viewport)
static bool blender::depsgraph_contains_visible_grease_pencil_geometry (Depsgraph *depsgraph, const bool skip_grease_pencil_objects)
bool blender::DRW_render_check_grease_pencil (Depsgraph *depsgraph, View3D *v3d=nullptr)
void blender::DRW_render_gpencil (RenderEngine *engine, Depsgraph *depsgraph)
void blender::DRW_render_to_image (RenderEngine *engine, Depsgraph *depsgraph, std::function< void(RenderEngine *, RenderLayer *, const rcti)> render_view_cb, std::function< void(RenderResult *)> store_metadata_cb)
void blender::DRW_render_object_iter (RenderEngine *engine, Depsgraph *depsgraph, std::function< void(draw::ObjectRef &, RenderEngine *, Depsgraph *)> callback)
void blender::DRW_custom_pipeline_begin (DRWContext &draw_ctx, Depsgraph *)
void blender::DRW_custom_pipeline_end (DRWContext &draw_ctx)
void blender::DRW_cache_restart ()
void blender::DRW_render_set_time (RenderEngine *engine, Depsgraph *depsgraph, int frame, float subframe)
static void blender::draw_select_framebuffer_depth_only_setup (const int size[2])
void blender::DRW_draw_select_loop (Depsgraph *depsgraph, ARegion *region, View3D *v3d, bool draw_surface, bool use_nearest, bool do_material_sub_selection, const rcti *rect, DRW_SelectPassFn select_pass_fn, void *select_pass_user_data, DRW_ObjectFilterFn object_filter_fn, void *object_filter_user_data)
void blender::DRW_draw_depth_loop (Depsgraph *depsgraph, ARegion *region, View3D *v3d, GPUViewport *viewport, const bool use_gpencil, const bool use_only_selected, const bool use_only_active_object)
void blender::DRW_draw_select_id (Depsgraph *depsgraph, ARegion *region, View3D *v3d)
bool blender::DRW_draw_in_progress ()