|
Blender V5.3
|
#include <overlay_camera.hh>
Inherits blender::draw::overlay::Overlay.
Public Member Functions | |
| Cameras (const SelectionType selection_type) | |
| void | begin_sync (Resources &res, const State &state) final |
| void | object_sync (Manager &manager, const ObjectRef &ob_ref, Resources &res, const State &state) final |
| void | end_sync (Resources &res, const State &state) final |
| void | pre_draw (Manager &manager, View &view) final |
| void | draw_line (Framebuffer &framebuffer, Manager &manager, View &view) final |
| void | draw_scene_background_images (gpu::FrameBuffer *framebuffer, Manager &manager, View &view) |
| void | draw_background_images (Framebuffer &framebuffer, Manager &manager, View &view) |
| void | draw_in_front (Framebuffer &framebuffer, Manager &manager, View &view) |
Camera object display (including stereoscopy). Also camera reconstruction bundles. Also camera reference images (background).
Definition at line 59 of file overlay_camera.hh.
|
inline |
Definition at line 99 of file overlay_camera.hh.
|
inlinefinalvirtual |
Synchronization creates and fill render passes based on context state and scene state.
It runs for every scene update, so keep computation overhead low. If it is triggered, everything in the scene is considered updated. Note that this only concerns the render passes, the mesh batch caches are updated on a per object-data basis.
IMPORTANT: Synchronization must be view agnostic. That is, not rely on view position, projection matrix or frame-buffer size to do conditional pass creation. This is because, by design, syncing can happen once and rendered multiple time (multi view rendering, stereo rendering, orbiting view ...). Conditional pass creation, must be done in the drawing callbacks, but they should remain the exception. Also there will be no access to object data at this point. Creates passes used for object sync and enabling / disabling internal overlay types (e.g. vertices, edges, faces in edit mode). Runs once at the start of the sync cycle. Should also contain passes setup for overlays that are not per object overlays (e.g. Grid).
This method must be implemented.
Implements blender::draw::overlay::Overlay.
Definition at line 101 of file overlay_camera.hh.
References blender::draw::overlay::Empties::begin_sync(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_ubo(), DRW_CLIPPING_UBO_SLOT, blender::DRW_STATE_BLEND_ALPHA_PREMUL, blender::DRW_STATE_BLEND_ALPHA_UNDER_PREMUL, blender::DRW_STATE_WRITE_COLOR, blender::draw::overlay::Overlay::enabled_, blender::draw::detail::Pass< DrawCommandBufType >::init(), OVERLAY_GLOBALS_SLOT, blender::draw::detail::PassBase< DrawCommandBufType >::push_constant(), blender::draw::detail::PassBase< DrawCommandBufType >::shader_set(), state, blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), and blender::V3D_SHOW_RECONSTRUCTION.
|
inline |
Definition at line 257 of file overlay_camera.hh.
References blender::GPU_framebuffer_bind(), and blender::draw::Manager::submit_only().
|
inline |
Definition at line 267 of file overlay_camera.hh.
References blender::GPU_framebuffer_bind(), and blender::draw::Manager::submit_only().
|
inlinefinalvirtual |
Reimplemented from blender::draw::overlay::Overlay.
Definition at line 236 of file overlay_camera.hh.
References blender::GPU_framebuffer_bind().
|
inline |
Definition at line 246 of file overlay_camera.hh.
References blender::GPU_framebuffer_bind(), and blender::draw::Manager::submit_only().
|
inlinefinalvirtual |
Finalize passes or buffers used for object sync. Runs once at the end of the sync cycle.
Reimplemented from blender::draw::overlay::Overlay.
Definition at line 167 of file overlay_camera.hh.
References DRW_CLIPPING_UBO_SLOT, blender::DRW_STATE_BLEND_ALPHA, blender::DRW_STATE_CULL_BACK, blender::DRW_STATE_DEPTH_LESS_EQUAL, blender::DRW_STATE_WRITE_COLOR, blender::DRW_STATE_WRITE_DEPTH, blender::draw::overlay::Empties::end_sync(), OVERLAY_GLOBALS_SLOT, blender::draw::detail::PassBase< DrawCommandBufType >::shader_set(), state, and blender::draw::detail::PassBase< DrawCommandBufType >::state_set().
|
inlinefinalvirtual |
Fills passes or buffers for each object. Runs for each individual object state. IMPORTANT: Can run only once for instances using the same state (ObjectRef might contains instancing data).
Reimplemented from blender::draw::overlay::Overlay.
Definition at line 149 of file overlay_camera.hh.
References blender::draw::overlay::Overlay::enabled_, and state.
|
inlinefinalvirtual |
Warms PassMain and PassSortable to avoid overhead of pipeline switching. Should only contains calls to generate_commands. NOTE: view is guaranteed to be the same view that will be passed to the draw functions.
Reimplemented from blender::draw::overlay::Overlay.
Definition at line 222 of file overlay_camera.hh.