Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_screen_types.h
| Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
| typedef struct uiPreview { /* some preview UI data need to be saved in file */ | typedef struct uiPreview { /* some preview UI data need to be saved in file */ | ||||
| struct uiPreview *next, *prev; | struct uiPreview *next, *prev; | ||||
| char preview_id[64]; /* defined as UI_MAX_NAME_STR */ | char preview_id[64]; /* defined as UI_MAX_NAME_STR */ | ||||
| short height; | short height; | ||||
| short pad1[3]; | short pad1[3]; | ||||
| } uiPreview; | } uiPreview; | ||||
| /* ********************************* */ | |||||
| /* Local View */ | |||||
| /** | |||||
| * Info about the current local view state. A local view area (View3D) and objects have this. | |||||
| * By comparing them we see which objects are visible. (Use with BKE_localview_ functions!) | |||||
| */ | |||||
| typedef struct LocalViewInfo { | |||||
| unsigned int viewbits; /* 32 bits to store up to 32 views */ | |||||
| } LocalViewInfo; | |||||
| /** | |||||
| * Data for 3D view area (View3D) while in local view. | |||||
| */ | |||||
| typedef struct LocalViewAreaData { | |||||
| LocalViewInfo info; | |||||
| /* Initial View3D values for reset after local view exit */ | |||||
| float near, far; | |||||
| short drawtype, pad; | |||||
| struct Object *camera; | |||||
| /* Debug only: View3D.lay shouldn't change while in local view, store initial one for BLI_assert check */ | |||||
| unsigned int v3d_lay, pad2; | |||||
| } LocalViewAreaData; | |||||
| /** | |||||
| * Data for 3D view region (RegionView3D) while in local view. | |||||
| */ | |||||
| typedef struct LocalViewRegionData { | |||||
| /* Initial RegionView3D values for reset after local view exit */ | |||||
| float camzoom; | |||||
| char persp; | |||||
| char view, pad[2]; | |||||
| float viewquat[4]; | |||||
| float dist; | |||||
| float ofs[3]; | |||||
| } LocalViewRegionData; | |||||
| /* ********************************* */ | |||||
| typedef struct ScrArea { | typedef struct ScrArea { | ||||
| struct ScrArea *next, *prev; | struct ScrArea *next, *prev; | ||||
| ScrVert *v1, *v2, *v3, *v4; /* ordered (bl, tl, tr, br) */ | ScrVert *v1, *v2, *v3, *v4; /* ordered (bl, tl, tr, br) */ | ||||
| bScreen *full; /* if area==full, this is the parent */ | bScreen *full; /* if area==full, this is the parent */ | ||||
| rcti totrct; /* rect bound by v1 v2 v3 v4 */ | rcti totrct; /* rect bound by v1 v2 v3 v4 */ | ||||
| ▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines | |||||