|
Blender V5.3
|
#include <cmath>#include <fmt/format.h>#include "BLI_listbase.hh"#include "BLI_math_color_c.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_half.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_rotation_c.hh"#include "BLI_rect.hh"#include "BLI_string_utf8.hh"#include "BLI_string_utils.hh"#include "BLI_threads.hh"#include "BLI_time.hh"#include "BKE_armature.hh"#include "BKE_camera.h"#include "BKE_collection.hh"#include "BKE_context.hh"#include "BKE_customdata.hh"#include "BKE_global.hh"#include "BKE_grease_pencil.hh"#include "BKE_image.hh"#include "BKE_image_gpu.hh"#include "BKE_key.hh"#include "BKE_layer.hh"#include "BKE_main.hh"#include "BKE_object.hh"#include "BKE_paint.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_unit.hh"#include "BKE_viewer_path.hh"#include "BLF_api.hh"#include "BLT_translation.hh"#include "DNA_armature_types.h"#include "DNA_camera_types.h"#include "DNA_key_types.h"#include "DNA_object_types.h"#include "DNA_view3d_types.h"#include "DNA_windowmanager_types.h"#include "DRW_engine.hh"#include "DRW_select_buffer.hh"#include "ED_gpencil_legacy.hh"#include "ED_info.hh"#include "ED_scene.hh"#include "ED_screen.hh"#include "ED_util.hh"#include "ED_view3d_offscreen.hh"#include "ED_viewer_path.hh"#include "ANIM_bone_collections.hh"#include "DEG_depsgraph_debug.hh"#include "DEG_depsgraph_query.hh"#include "GPU_framebuffer.hh"#include "GPU_immediate.hh"#include "GPU_immediate_util.hh"#include "GPU_matrix.hh"#include "GPU_state.hh"#include "GPU_viewport.hh"#include "MEM_guardedalloc.h"#include "UI_interface.hh"#include "UI_resources.hh"#include "RE_engine.h"#include "WM_api.hh"#include "WM_types.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "ANIM_keyframing.hh"#include "view3d_intern.hh"Go to the source code of this file.
Classes | |
| struct | blender::RV3DMatrixStore |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | VIEW3D_OVERLAY_LINEHEIGHT (ui::style_get()->widget.points * UI_SCALE_FAC * 1.6f) |
Functions | |
General Functions | |
| void | blender::ED_view3d_update_viewmat (const Depsgraph *depsgraph, const Scene *scene, View3D *v3d, ARegion *region, const float viewmat[4][4], const float winmat[4][4], const rcti *rect, bool offscreen) |
| static void | blender::view3d_main_region_setup_view (Depsgraph *depsgraph, Scene *scene, View3D *v3d, ARegion *region, const float viewmat[4][4], const float winmat[4][4], const rcti *rect) |
| static void | blender::view3d_main_region_setup_offscreen (Depsgraph *depsgraph, const Scene *scene, View3D *v3d, ARegion *region, const float viewmat[4][4], const float winmat[4][4]) |
| static bool | blender::view3d_stereo3d_active (wmWindow *win, const Scene *scene, View3D *v3d, RegionView3D *rv3d) |
| static void | blender::view3d_stereo3d_setup (Depsgraph *depsgraph, Scene *scene, View3D *v3d, ARegion *region, const rcti *rect) |
| void | blender::ED_view3d_draw_setup_view (const wmWindowManager *wm, wmWindow *win, Depsgraph *depsgraph, Scene *scene, ARegion *region, View3D *v3d, const float viewmat[4][4], const float winmat[4][4], const rcti *rect) |
Draw View Border | |
| static void | blender::drawviewborder (Scene *scene, Depsgraph *depsgraph, ARegion *region, View3D *v3d) |
| static void | blender::drawrenderborder (ARegion *region, View3D *v3d) |
Draw Text & Info | |
| static void | blender::view3d_draw_grease_pencil (const bContext *) |
| static const char * | blender::view3d_get_name (View3D *v3d, RegionView3D *rv3d) |
| static void | blender::draw_viewport_name (ARegion *region, View3D *v3d, int xoffset, int *yoffset) |
| static bool | blender::is_grease_pencil_with_layer_keyframe (const Object &ob) |
| static void | blender::draw_selected_name (const Main &bmain, const View3D *v3d, Scene *scene, ViewLayer *view_layer, Object *ob, int xoffset, int *yoffset) |
| static void | blender::draw_grid_unit_name (Scene *scene, ARegion *region, View3D *v3d, int xoffset, int *yoffset) |
| static float4 | blender::get_low_fps_color () |
| static void | blender::draw_performance_stats (Depsgraph *depsgraph, Scene *scene, View3D *v3d, const float text_color[4], const int xoffset, int *yoffset, const int line_height) |
| void | blender::view3d_draw_region_info (const bContext *C, ARegion *region) |
Draw Viewport Contents | |
| static void | blender::view3d_draw_view (const bContext *C, ARegion *region) |
| RenderEngineType * | blender::ED_view3d_engine_type (const Scene *scene, int drawtype) |
| static void | blender::view3d_update_viewer_path (const bContext *C) |
| void | blender::view3d_main_region_draw (const bContext *C, ARegion *region) |
Off-screen Drawing | |
| static void | blender::view3d_stereo3d_setup_offscreen (Depsgraph *depsgraph, const Scene *scene, View3D *v3d, ARegion *region, const float winmat[4][4], const char *viewname) |
| void | blender::ED_view3d_draw_offscreen (Depsgraph *depsgraph, const Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, bContext *context, int winx, int winy, const float viewmat[4][4], const float winmat[4][4], bool is_image_render, bool draw_background, const char *viewname, bool do_color_management, bool restore_rv3d_mats, GPUOffScreen *ofs, GPUViewport *viewport) |
| static void | blender::view3d_draw_offscreen_set_overlay_defaults (View3D &v3d) |
| void | blender::ED_view3d_draw_offscreen_simple (Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, bContext *context, eDrawType drawtype, int object_type_exclude_viewport_override, int object_type_exclude_select_override, int winx, int winy, unsigned int draw_flags, const float viewmat[4][4], const float winmat[4][4], float clip_start, float clip_end, float xr_vignette_aperture, bool is_xr_surface, bool is_image_render, bool draw_background, const char *viewname, bool do_color_management, Object *camera_override, GPUOffScreen *ofs, GPUViewport *viewport) |
| ImBuf * | blender::ED_view3d_draw_offscreen_imbuf (Depsgraph *depsgraph, Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, int sizex, int sizey, ImBufFlags imbuf_flag, int alpha_mode, const char *viewname, bool restore_rv3d_mats, GPUOffScreen *ofs, GPUViewport *viewport, bool use_camera_view_bounds, char err_out[256]) |
| ImBuf * | blender::ED_view3d_draw_offscreen_imbuf_simple (Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, eDrawType drawtype, Object *camera, int width, int height, ImBufFlags imbuf_flags, eV3DOffscreenDrawFlag draw_flags, int alpha_mode, const char *viewname, GPUOffScreen *ofs, GPUViewport *viewport, char err_out[256]) |
| bool | blender::ED_view3d_draw_offscreen_check_nested () |
Viewport Clipping | |
| static bool | blender::view3d_clipping_test (const float co[3], const float clip[6][4]) |
| bool | blender::ED_view3d_clipping_test (const RegionView3D *rv3d, const float co[3], bool is_local) |
Back-Draw for Selection | |
| static void | blender::validate_object_select_id (const Main &bmain, Depsgraph *depsgraph, const Scene *scene, ViewLayer *view_layer, ARegion *region, View3D *v3d, Object *obact) |
| static void | blender::view3d_gpu_read_Z_pixels (GPUViewport *viewport, rcti *rect, void *data) |
| void | blender::ED_view3d_select_id_validate (const ViewContext *vc) |
| int | blender::ED_view3d_backbuf_sample_size_clamp (ARegion *region, float dist) |
Z-Depth Utilities | |
| void | blender::view3d_depths_rect_create (ARegion *region, rcti *rect, ViewDepths *r_d) |
| static ViewDepths * | blender::view3d_depths_create (ARegion *region) |
| float | blender::view3d_depth_near_ex (ViewDepths *d, int r_xy[2]) |
| float | blender::view3d_depth_near (ViewDepths *d) |
| void | blender::ED_view3d_depth_override (Depsgraph *depsgraph, ARegion *region, View3D *v3d, Object *obact, eV3DDepthOverrideMode mode, bool use_overlay, ViewDepths **r_depths) |
| void | blender::ED_view3d_depths_free (ViewDepths *depths) |
| bool | blender::ED_view3d_has_depth_buffer_updated (const Depsgraph *depsgraph, const View3D *v3d) |
Custom-data Utilities | |
| void | blender::ED_view3d_datamask (const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d, CustomData_MeshMasks *r_cddata_masks) |
| void | blender::ED_view3d_screen_datamask (const Main &bmain, const Scene *scene, ViewLayer *view_layer, const bScreen *screen, CustomData_MeshMasks *r_cddata_masks) |
Region View Matrix Backup/Restore | |
| RV3DMatrixStore * | blender::ED_view3d_mats_rv3d_backup (RegionView3D *rv3d) |
| void | blender::ED_view3d_mats_rv3d_restore (RegionView3D *rv3d, RV3DMatrixStore *rv3dmat) |
| void | blender::ED_view3D_mats_rv3d_free (RV3DMatrixStore *rv3d_mat) |
FPS Drawing | |
| void | blender::ED_scene_draw_fps (const Scene *scene, int xoffset, int *yoffset) |
Calculate Render Border | |
| static bool | blender::view3d_main_region_do_render_draw (const Scene *scene) |
| bool | blender::ED_view3d_calc_render_border (const Scene *scene, Depsgraph *depsgraph, View3D *v3d, ARegion *region, rcti *r_rect) |
Other Elements | |
| #define | STEPS_LEN 8 |
| float | blender::ED_scene_grid_scale (const Scene *scene, const char **r_grid_unit) |
| float | blender::ED_view3d_grid_scale (const Scene *scene, const View3D *v3d, const char **r_grid_unit) |
| static void | blender::view3d_grid_steps_ex (const Scene *scene, const View3D *v3d, const RegionView3D *rv3d, float r_grid_steps[STEPS_LEN], void const **r_usys_pt, int *r_len) |
| void | blender::ED_view3d_grid_steps (const Scene *scene, const View3D *v3d, const RegionView3D *rv3d, float r_grid_steps[STEPS_LEN]) |
| float | blender::ED_view3d_grid_view_scale (const Scene *scene, const View3D *v3d, const ARegion *region, const char **r_grid_unit) |
| static void | blender::draw_view_axis (RegionView3D *rv3d, const rcti *rect) |
| static void | blender::view3d_draw_border (const bContext *C, ARegion *region) |
| #define STEPS_LEN 8 |
Definition at line 702 of file view3d_draw.cc.
Referenced by blender::ED_view3d_grid_steps(), blender::ED_view3d_grid_view_scale(), and blender::view3d_grid_steps_ex().
| #define VIEW3D_OVERLAY_LINEHEIGHT (ui::style_get()->widget.points * UI_SCALE_FAC * 1.6f) |
Definition at line 96 of file view3d_draw.cc.
Referenced by blender::draw_grid_unit_name(), blender::draw_selected_name(), blender::draw_viewport_name(), blender::ED_scene_draw_fps(), and blender::view3d_draw_region_info().