|
Blender
V2.93
|
#include "DRW_render.h"#include "DNA_camera_types.h"#include "DEG_depsgraph_query.h"#include "ED_image.h"#include "ED_view3d.h"#include "UI_resources.h"#include "overlay_private.h"Go to the source code of this file.
Enumerations | |
| enum | { SHOW_AXIS_X = (1 << 0) , SHOW_AXIS_Y = (1 << 1) , SHOW_AXIS_Z = (1 << 2) , SHOW_GRID = (1 << 3) , PLANE_XY = (1 << 4) , PLANE_XZ = (1 << 5) , PLANE_YZ = (1 << 6) , CLIP_ZPOS = (1 << 7) , CLIP_ZNEG = (1 << 8) , GRID_BACK = (1 << 9) , GRID_CAMERA = (1 << 10) , PLANE_IMAGE = (1 << 11) } |
Functions | |
| void | OVERLAY_grid_init (OVERLAY_Data *vedata) |
| void | OVERLAY_grid_cache_init (OVERLAY_Data *vedata) |
| void | OVERLAY_grid_draw (OVERLAY_Data *vedata) |
| anonymous enum |
| Enumerator | |
|---|---|
| SHOW_AXIS_X | |
| SHOW_AXIS_Y | |
| SHOW_AXIS_Z | |
| SHOW_GRID | |
| PLANE_XY | |
| PLANE_XZ | |
| PLANE_YZ | |
| CLIP_ZPOS | |
| CLIP_ZNEG | |
| GRID_BACK | |
| GRID_CAMERA | |
| PLANE_IMAGE | |
Definition at line 36 of file overlay_grid.c.
| void OVERLAY_grid_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 187 of file overlay_grid.c.
References ARRAY_SIZE, DRW_Global::block, DRW_Global::block_ubo, GlobalsUboStorage::colorBackground, GlobalsUboStorage::colorGrid, DefaultTextureList::depth, DRW_cache_grid_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_PASS_CREATE, DRW_shgroup_call, DRW_shgroup_call_obmat, DRW_shgroup_create(), DRW_shgroup_uniform_block(), DRW_shgroup_uniform_float(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int(), DRW_shgroup_uniform_texture_ref(), DRW_shgroup_uniform_vec3(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_state_is_fbo(), DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), G_draw, GPUBatch, OVERLAY_ShadingData::grid_axes, OVERLAY_ShadingData::grid_distance, OVERLAY_ShadingData::grid_flag, OVERLAY_ShadingData::grid_line_size, OVERLAY_PassList::grid_ps, OVERLAY_ShadingData::grid_size, OVERLAY_ShadingData::grid_steps, interp_v4_v4v4(), NULL, OVERLAY_shader_grid(), OVERLAY_shader_grid_image(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::shdata, SHOW_AXIS_Z, SPACE_IMAGE, OVERLAY_PrivateData::space_type, srgb_to_linearrgb_v4(), state, OVERLAY_Data::stl, TH_BACK, UI_GetThemeColorShade4fv(), unit_m4(), x, y, OVERLAY_ShadingData::zneg_flag, OVERLAY_ShadingData::zplane_axes, and OVERLAY_ShadingData::zpos_flag.
Referenced by OVERLAY_cache_init().
| void OVERLAY_grid_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 279 of file overlay_grid.c.
References DRW_draw_pass(), OVERLAY_PassList::grid_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_grid_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 51 of file overlay_grid.c.
References View3D::camera, View3D::clip_end, CLIP_ZNEG, CLIP_ZPOS, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, DRW_context_state_get(), DRW_view_viewmat_get(), DRW_view_winmat_get(), ED_space_image_has_buffer(), ED_view3d_grid_steps(), ELEM, fabsf, float(), OVERLAY_ShadingData::grid_axes, GRID_BACK, GRID_CAMERA, OVERLAY_ShadingData::grid_distance, OVERLAY_ShadingData::grid_flag, OVERLAY_ShadingData::grid_line_size, OVERLAY_ShadingData::grid_size, OVERLAY_ShadingData::grid_steps, OVERLAY_PrivateData::hide_overlays, max_ff(), min_ff(), negate_v3_v3(), NULL, OB_CAMERA, OVERLAY_StorageList::pd, RegionView3D::persp, PLANE_IMAGE, PLANE_XY, PLANE_XZ, PLANE_YZ, powf, 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, scene, DRWContextState::scene, OVERLAY_PrivateData::shdata, SHOW_AXIS_X, SHOW_AXIS_Y, SHOW_AXIS_Z, SHOW_GRID, DRWContextState::space_data, SPACE_IMAGE, OVERLAY_PrivateData::space_type, OVERLAY_Data::stl, SpaceImage::tile_grid_shape, Object::type, DRWContextState::v3d, OVERLAY_PrivateData::v3d_gridflag, V3D_SHOW_FLOOR, V3D_SHOW_ORTHO_GRID, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, RegionView3D::view, OVERLAY_ShadingData::zneg_flag, OVERLAY_ShadingData::zplane_axes, and OVERLAY_ShadingData::zpos_flag.
Referenced by OVERLAY_engine_init().