Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/action_draw.c
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| /* ************************************************************************* */ | /* ************************************************************************* */ | ||||
| /* Channel List */ | /* Channel List */ | ||||
| /* left hand part */ | /* left hand part */ | ||||
| void draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region) | void draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region) | ||||
| { | { | ||||
| ListBase anim_data = {NULL, NULL}; | ListBase anim_data = {NULL, NULL}; | ||||
| bAnimListElem *ale; | bAnimListElem *ale; | ||||
| int filter; | eAnimFilter_Flags filter; | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| size_t items; | size_t items; | ||||
| /* build list of channels to draw */ | /* build list of channels to draw */ | ||||
| filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS); | filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS); | ||||
| items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | ||||
| ▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *region) | ||||
| UI_GetThemeColor4ubv(TH_GROUP, col2a); | UI_GetThemeColor4ubv(TH_GROUP, col2a); | ||||
| UI_GetThemeColor4ubv(TH_GROUP_ACTIVE, col1a); | UI_GetThemeColor4ubv(TH_GROUP_ACTIVE, col1a); | ||||
| UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELOB, col1b); | UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELOB, col1b); | ||||
| UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELSUBOB, col2b); | UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELSUBOB, col2b); | ||||
| /* build list of channels to draw */ | /* build list of channels to draw */ | ||||
| int filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS); | eAnimFilter_Flags filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS); | ||||
| size_t items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | size_t items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | ||||
| int height = ACHANNEL_TOT_HEIGHT(ac, items); | int height = ACHANNEL_TOT_HEIGHT(ac, items); | ||||
| v2d->tot.ymin = -height; | v2d->tot.ymin = -height; | ||||
| GPUVertFormat *format = immVertexFormat(); | GPUVertFormat *format = immVertexFormat(); | ||||
| uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | ||||
| ▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines | |||||