Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show All 16 Lines | |||||
| struct wmTimer; | struct wmTimer; | ||||
| #include "DNA_defs.h" | #include "DNA_defs.h" | ||||
| #include "DNA_image_types.h" | #include "DNA_image_types.h" | ||||
| #include "DNA_listBase.h" | #include "DNA_listBase.h" | ||||
| #include "DNA_movieclip_types.h" | #include "DNA_movieclip_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_view3d_enums.h" | #include "DNA_view3d_enums.h" | ||||
| #include "DNA_viewer_path_types.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| typedef struct RegionView3D { | typedef struct RegionView3D { | ||||
| /** GL_PROJECTION matrix. */ | /** GL_PROJECTION matrix. */ | ||||
| ▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | typedef struct View3DOverlay { | ||||
| int wpaint_flag; | int wpaint_flag; | ||||
| /** Alpha for texture, weight, vertex paint overlay. */ | /** Alpha for texture, weight, vertex paint overlay. */ | ||||
| float texture_paint_mode_opacity; | float texture_paint_mode_opacity; | ||||
| float vertex_paint_mode_opacity; | float vertex_paint_mode_opacity; | ||||
| float weight_paint_mode_opacity; | float weight_paint_mode_opacity; | ||||
| float sculpt_mode_mask_opacity; | float sculpt_mode_mask_opacity; | ||||
| float sculpt_mode_face_sets_opacity; | float sculpt_mode_face_sets_opacity; | ||||
| float viewer_attribute_opacity; | |||||
| /** Armature edit/pose mode settings. */ | /** Armature edit/pose mode settings. */ | ||||
| float xray_alpha_bone; | float xray_alpha_bone; | ||||
| float bone_wire_alpha; | float bone_wire_alpha; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| /** Darken Inactive. */ | /** Darken Inactive. */ | ||||
| float fade_alpha; | float fade_alpha; | ||||
| /** Other settings. */ | /** Other settings. */ | ||||
| float wireframe_threshold; | float wireframe_threshold; | ||||
| float wireframe_opacity; | float wireframe_opacity; | ||||
| /** Grease pencil settings. */ | /** Grease pencil settings. */ | ||||
| float gpencil_paper_opacity; | float gpencil_paper_opacity; | ||||
| float gpencil_grid_opacity; | float gpencil_grid_opacity; | ||||
| float gpencil_fade_layer; | float gpencil_fade_layer; | ||||
| /** Factor for mixing vertex paint with original color */ | /** Factor for mixing vertex paint with original color */ | ||||
| float gpencil_vertex_paint_opacity; | float gpencil_vertex_paint_opacity; | ||||
| /** Handles display type for curves. */ | /** Handles display type for curves. */ | ||||
| int handle_display; | int handle_display; | ||||
| char _pad[4]; | |||||
| } View3DOverlay; | } View3DOverlay; | ||||
| /** #View3DOverlay.handle_display */ | /** #View3DOverlay.handle_display */ | ||||
| typedef enum eHandleDisplay { | typedef enum eHandleDisplay { | ||||
| /* Display only selected points. */ | /* Display only selected points. */ | ||||
| CURVE_HANDLE_SELECTED = 0, | CURVE_HANDLE_SELECTED = 0, | ||||
| /* Display all handles. */ | /* Display all handles. */ | ||||
| CURVE_HANDLE_ALL = 1, | CURVE_HANDLE_ALL = 1, | ||||
| ▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | typedef struct View3D { | ||||
| float stereo3d_convergence_factor; | float stereo3d_convergence_factor; | ||||
| float stereo3d_volume_alpha; | float stereo3d_volume_alpha; | ||||
| float stereo3d_convergence_alpha; | float stereo3d_convergence_alpha; | ||||
| /** Display settings. */ | /** Display settings. */ | ||||
| View3DShading shading; | View3DShading shading; | ||||
| View3DOverlay overlay; | View3DOverlay overlay; | ||||
| /** Path to the viewer node that is currently previewed. This is retrieved from the workspace. */ | |||||
| ViewerPath viewer_path; | |||||
| /** Runtime evaluation data (keep last). */ | /** Runtime evaluation data (keep last). */ | ||||
| View3D_Runtime runtime; | View3D_Runtime runtime; | ||||
| } View3D; | } View3D; | ||||
| /** #View3D.stereo3d_flag */ | /** #View3D.stereo3d_flag */ | ||||
| #define V3D_S3D_DISPCAMERAS (1 << 0) | #define V3D_S3D_DISPCAMERAS (1 << 0) | ||||
| #define V3D_S3D_DISPPLANE (1 << 1) | #define V3D_S3D_DISPPLANE (1 << 1) | ||||
| #define V3D_S3D_DISPVOLUME (1 << 2) | #define V3D_S3D_DISPVOLUME (1 << 2) | ||||
| ▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| #define RV3D_CLIPPING_ENABLED(v3d, rv3d) \ | #define RV3D_CLIPPING_ENABLED(v3d, rv3d) \ | ||||
| ((rv3d) && (v3d) && ((rv3d)->rflag & RV3D_CLIPPING) && \ | ((rv3d) && (v3d) && ((rv3d)->rflag & RV3D_CLIPPING) && \ | ||||
| ELEM((v3d)->shading.type, OB_WIRE, OB_SOLID) && (rv3d)->clipbb) | ELEM((v3d)->shading.type, OB_WIRE, OB_SOLID) && (rv3d)->clipbb) | ||||
| /** #View3D.flag2 (int) */ | /** #View3D.flag2 (int) */ | ||||
| #define V3D_HIDE_OVERLAYS (1 << 2) | #define V3D_HIDE_OVERLAYS (1 << 2) | ||||
| #define V3D_FLAG2_UNUSED_3 (1 << 3) /* cleared */ | #define V3D_SHOW_VIEWER (1 << 3) | ||||
| #define V3D_SHOW_ANNOTATION (1 << 4) | #define V3D_SHOW_ANNOTATION (1 << 4) | ||||
| #define V3D_LOCK_CAMERA (1 << 5) | #define V3D_LOCK_CAMERA (1 << 5) | ||||
| #define V3D_FLAG2_UNUSED_6 (1 << 6) /* cleared */ | #define V3D_FLAG2_UNUSED_6 (1 << 6) /* cleared */ | ||||
| #define V3D_SHOW_RECONSTRUCTION (1 << 7) | #define V3D_SHOW_RECONSTRUCTION (1 << 7) | ||||
| #define V3D_SHOW_CAMERAPATH (1 << 8) | #define V3D_SHOW_CAMERAPATH (1 << 8) | ||||
| #define V3D_SHOW_BUNDLENAME (1 << 9) | #define V3D_SHOW_BUNDLENAME (1 << 9) | ||||
| #define V3D_FLAG2_UNUSED_10 (1 << 10) /* cleared */ | #define V3D_FLAG2_UNUSED_10 (1 << 10) /* cleared */ | ||||
| #define V3D_RENDER_BORDER (1 << 11) | #define V3D_RENDER_BORDER (1 << 11) | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | enum { | ||||
| V3D_OVERLAY_HIDE_TEXT = (1 << 5), | V3D_OVERLAY_HIDE_TEXT = (1 << 5), | ||||
| V3D_OVERLAY_HIDE_MOTION_PATHS = (1 << 6), | V3D_OVERLAY_HIDE_MOTION_PATHS = (1 << 6), | ||||
| V3D_OVERLAY_ONION_SKINS = (1 << 7), | V3D_OVERLAY_ONION_SKINS = (1 << 7), | ||||
| V3D_OVERLAY_HIDE_BONES = (1 << 8), | V3D_OVERLAY_HIDE_BONES = (1 << 8), | ||||
| V3D_OVERLAY_HIDE_OBJECT_XTRAS = (1 << 9), | V3D_OVERLAY_HIDE_OBJECT_XTRAS = (1 << 9), | ||||
| V3D_OVERLAY_HIDE_OBJECT_ORIGINS = (1 << 10), | V3D_OVERLAY_HIDE_OBJECT_ORIGINS = (1 << 10), | ||||
| V3D_OVERLAY_STATS = (1 << 11), | V3D_OVERLAY_STATS = (1 << 11), | ||||
| V3D_OVERLAY_FADE_INACTIVE = (1 << 12), | V3D_OVERLAY_FADE_INACTIVE = (1 << 12), | ||||
| V3D_OVERLAY_VIEWER_ATTRIBUTE = (1 << 13), | |||||
| }; | }; | ||||
| /** #View3DOverlay.edit_flag */ | /** #View3DOverlay.edit_flag */ | ||||
| enum { | enum { | ||||
| V3D_OVERLAY_EDIT_VERT_NORMALS = (1 << 0), | V3D_OVERLAY_EDIT_VERT_NORMALS = (1 << 0), | ||||
| V3D_OVERLAY_EDIT_LOOP_NORMALS = (1 << 1), | V3D_OVERLAY_EDIT_LOOP_NORMALS = (1 << 1), | ||||
| V3D_OVERLAY_EDIT_FACE_NORMALS = (1 << 2), | V3D_OVERLAY_EDIT_FACE_NORMALS = (1 << 2), | ||||
| ▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines | |||||