Blender  V3.3
Functions
clip_dopesheet_draw.c File Reference
#include "DNA_movieclip_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_movieclip.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "BLF_api.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "clip_intern.h"

Go to the source code of this file.

Functions

static void track_channel_color (MovieTrackingTrack *track, const float default_color[3], float color[3])
 
static void draw_keyframe_shape (float x, float y, bool sel, float alpha, uint pos_id, uint color_id)
 
static void clip_draw_dopesheet_background (ARegion *region, MovieClip *clip, uint pos_id)
 
void clip_draw_dopesheet_main (SpaceClip *sc, ARegion *region, Scene *scene)
 
void clip_draw_dopesheet_channels (const bContext *C, ARegion *region)
 

Function Documentation

◆ clip_draw_dopesheet_background()

static void clip_draw_dopesheet_background ( ARegion region,
MovieClip clip,
uint  pos_id 
)
static

◆ clip_draw_dopesheet_channels()

void clip_draw_dopesheet_channels ( const bContext C,
ARegion region 
)

◆ clip_draw_dopesheet_main()

void clip_draw_dopesheet_main ( SpaceClip sc,
ARegion region,
Scene scene 
)

Definition at line 95 of file clip_dopesheet_draw.c.

References BKE_movieclip_remap_clip_to_scene_frame(), BLI_rcti_size_x(), BLI_rcti_size_y(), CHANNEL_FIRST, CHANNEL_HEIGHT, CHANNEL_HEIGHT_HALF, CHANNEL_STEP, MovieTrackingDopesheet::channels, clip_draw_dopesheet_background(), clip_draw_sfra_efra(), color, View2D::cur, MovieTracking::dopesheet, draw_keyframe_shape(), ED_space_clip_get_clip(), EXTRA_SCROLL_PAD, ListBase::first, MovieTrackingMarker::flag, MovieTrackingTrack::flag, float(), MovieTrackingMarker::framenr, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_COMP_U32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_POINTS, GPU_program_point_size(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_SHADER_KEYFRAME_SHAPE, GPU_vertformat_attr_add(), height, immAttr1f(), immAttr1u(), immAttr4ub(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1f(), immUniform2f(), immUniformColor4fv(), immVertexFormat(), IN_RANGE, MARKER_DISABLED, MARKER_TRACKED, MovieTrackingTrack::markers, View2D::mask, MovieTrackingDopesheetChannel::next, scene, MovieTrackingDopesheetChannel::segments, STRIP_HEIGHT_HALF, TH_STRIP, TH_STRIP_SELECT, View2D::tot, MovieTrackingDopesheet::tot_channel, MovieTrackingDopesheetChannel::tot_segment, MovieTrackingDopesheetChannel::track, track_channel_color(), TRACK_DOPE_SEL, TRACK_LOCKED, MovieClip::tracking, UI_GetThemeColor3fv(), ARegion::v2d, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.

Referenced by dopesheet_region_draw().

◆ draw_keyframe_shape()

static void draw_keyframe_shape ( float  x,
float  y,
bool  sel,
float  alpha,
uint  pos_id,
uint  color_id 
)
static

◆ track_channel_color()

static void track_channel_color ( MovieTrackingTrack track,
const float  default_color[3],
float  color[3] 
)
static