Blender V4.3
overlay_grid.cc File Reference
#include "BLI_math_color.h"
#include "DRW_render.hh"
#include "DNA_camera_types.h"
#include "DNA_screen_types.h"
#include "DEG_depsgraph_query.hh"
#include "ED_image.hh"
#include "ED_view3d.hh"
#include "UI_resources.hh"
#include "overlay_next_instance.hh"
#include "overlay_private.hh"

Go to the source code of this file.

Typedefs

using Instance = blender::draw::overlay::Instance
 

Functions

void OVERLAY_grid_init (OVERLAY_Data *vedata)
 
void OVERLAY_grid_cache_init (OVERLAY_Data *vedata)
 
void OVERLAY_grid_draw (OVERLAY_Data *vedata)
 

Typedef Documentation

◆ Instance

Definition at line 28 of file overlay_grid.cc.

Function Documentation

◆ OVERLAY_grid_cache_init()

◆ OVERLAY_grid_draw()

void OVERLAY_grid_draw ( OVERLAY_Data * vedata)

Definition at line 318 of file overlay_grid.cc.

References DRW_draw_pass(), OVERLAY_PassList::grid_ps, and OVERLAY_Data::psl.

Referenced by OVERLAY_draw_scene().

◆ OVERLAY_grid_init()

void OVERLAY_grid_init ( OVERLAY_Data * vedata)

Definition at line 32 of file overlay_grid.cc.

References View3D::camera, View3D::clip_end, CLIP_ZNEG, CLIP_ZPOS, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), CUSTOM_GRID, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, DRW_context_state_get(), DRW_view_viewmat_get(), DRW_view_winmat_get(), ED_space_image_grid_steps(), ED_space_image_has_buffer(), ED_space_image_zoom_level(), ED_view3d_grid_steps(), ELEM, fabsf, SpaceImage::flag, SpaceImageOverlay::flag, View3D::flag, float, OVERLAY_PrivateData::grid, OVERLAY_PrivateData::grid_axes, GRID_BACK, GRID_CAMERA, OVERLAY_PrivateData::grid_data, OVERLAY_PrivateData::grid_flag, SpaceImage::grid_shape_source, OVERLAY_PrivateData::hide_overlays, len_v3(), max_ff(), min_ff(), SpaceImage::mode, negate_v3_v3(), OB_CAMERA, SpaceImage::overlay, RegionView3D::persp, PLANE_IMAGE, PLANE_XY, PLANE_XZ, PLANE_YZ, DRWContextState::region, DRWContextState::rv3d, RV3D_CAMOB, RV3D_ORTHO, RV3D_VIEW_BACK, RV3D_VIEW_BOTTOM, RV3D_VIEW_FRONT, RV3D_VIEW_LEFT, RV3D_VIEW_RIGHT, RV3D_VIEW_TOP, RV3D_VIEW_USER, DRWContextState::scene, SHOW_AXIS_X, SHOW_AXIS_Y, SHOW_AXIS_Z, SHOW_GRID, SI_GRID_OVER_IMAGE, SI_GRID_SHAPE_DYNAMIC, SI_GRID_STEPS_LEN, SI_MODE_UV, SI_OVERLAY_SHOW_GRID_BACKGROUND, DRWContextState::space_data, SPACE_IMAGE, OVERLAY_PrivateData::space_type, SpaceImage::tile_grid_shape, Object::type, ARegion::v2d, DRWContextState::v3d, OVERLAY_PrivateData::v3d_gridflag, V3D_SHOW_FLOOR, V3D_SHOW_ORTHO_GRID, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, V3D_XR_SESSION_MIRROR, V3D_XR_SESSION_SURFACE, RegionView3D::view, OVERLAY_PrivateData::zneg_flag, OVERLAY_PrivateData::zplane_axes, and OVERLAY_PrivateData::zpos_flag.

Referenced by OVERLAY_engine_init().