Blender  V3.3
ED_keyframes_draw.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2009 Blender Foundation, Joshua Leung. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct AnimData;
15 struct AnimKeylistDrawList;
16 struct FCurve;
17 struct MaskLayer;
18 struct Object;
19 struct Scene;
20 struct View2D;
21 struct bAction;
22 struct bActionGroup;
23 struct bAnimContext;
24 struct bDopeSheet;
25 struct bGPDlayer;
26 
27 /* draw simple diamond-shape keyframe */
28 /* caller should set up vertex format, bind GPU_SHADER_KEYFRAME_SHAPE,
29  * immBegin(GPU_PRIM_POINTS, n), then call this n times */
30 typedef struct KeyframeShaderBindings {
37 
38 void draw_keyframe_shape(float x,
39  float y,
40  float size,
41  bool sel,
42  short key_type,
43  short mode,
44  float alpha,
45  const KeyframeShaderBindings *sh_bindings,
46  short handle_type,
47  short extreme_type);
48 
49 /* ******************************* Methods ****************************** */
50 
51 /* Channel Drawing ------------------ */
52 /* F-Curve */
53 void draw_fcurve_channel(struct AnimKeylistDrawList *draw_list,
54  struct AnimData *adt,
55  struct FCurve *fcu,
56  float ypos,
57  float yscale_fac,
58  int saction_flag);
59 /* Action Group Summary */
60 void draw_agroup_channel(struct AnimKeylistDrawList *draw_list,
61  struct AnimData *adt,
62  struct bActionGroup *agrp,
63  float ypos,
64  float yscale_fac,
65  int saction_flag);
66 /* Action Summary */
67 void draw_action_channel(struct AnimKeylistDrawList *draw_list,
68  struct AnimData *adt,
69  struct bAction *act,
70  float ypos,
71  float yscale_fac,
72  int saction_flag);
73 /* Object Summary */
74 void draw_object_channel(struct AnimKeylistDrawList *draw_list,
75  struct bDopeSheet *ads,
76  struct Object *ob,
77  float ypos,
78  float yscale_fac,
79  int saction_flag);
80 /* Scene Summary */
81 void draw_scene_channel(struct AnimKeylistDrawList *draw_list,
82  struct bDopeSheet *ads,
83  struct Scene *sce,
84  float ypos,
85  float yscale_fac,
86  int saction_flag);
87 /* DopeSheet Summary */
88 void draw_summary_channel(struct AnimKeylistDrawList *draw_list,
89  struct bAnimContext *ac,
90  float ypos,
91  float yscale_fac,
92  int saction_flag);
93 /* Grease Pencil Layer */
94 void draw_gpl_channel(struct AnimKeylistDrawList *draw_list,
95  struct bDopeSheet *ads,
96  struct bGPDlayer *gpl,
97  float ypos,
98  float yscale_fac,
99  int saction_flag);
100 /* Mask Layer */
101 void draw_masklay_channel(struct AnimKeylistDrawList *draw_list,
102  struct bDopeSheet *ads,
103  struct MaskLayer *masklay,
104  float ypos,
105  float yscale_fac,
106  int saction_flag);
107 
109 void ED_keylist_draw_list_flush(struct AnimKeylistDrawList *draw_list, struct View2D *v2d);
110 void ED_keylist_draw_list_free(struct AnimKeylistDrawList *draw_list);
111 
112 #ifdef __cplusplus
113 }
114 #endif
unsigned int uint
Definition: BLI_sys_types.h:67
void draw_action_channel(struct AnimKeylistDrawList *draw_list, struct AnimData *adt, struct bAction *act, float ypos, float yscale_fac, int saction_flag)
void ED_keylist_draw_list_free(struct AnimKeylistDrawList *draw_list)
void draw_agroup_channel(struct AnimKeylistDrawList *draw_list, struct AnimData *adt, struct bActionGroup *agrp, float ypos, float yscale_fac, int saction_flag)
struct KeyframeShaderBindings KeyframeShaderBindings
void draw_fcurve_channel(struct AnimKeylistDrawList *draw_list, struct AnimData *adt, struct FCurve *fcu, float ypos, float yscale_fac, int saction_flag)
void draw_scene_channel(struct AnimKeylistDrawList *draw_list, struct bDopeSheet *ads, struct Scene *sce, float ypos, float yscale_fac, int saction_flag)
void draw_gpl_channel(struct AnimKeylistDrawList *draw_list, struct bDopeSheet *ads, struct bGPDlayer *gpl, float ypos, float yscale_fac, int saction_flag)
struct AnimKeylistDrawList * ED_keylist_draw_list_create(void)
void draw_keyframe_shape(float x, float y, float size, bool sel, short key_type, short mode, float alpha, const KeyframeShaderBindings *sh_bindings, short handle_type, short extreme_type)
void draw_masklay_channel(struct AnimKeylistDrawList *draw_list, struct bDopeSheet *ads, struct MaskLayer *masklay, float ypos, float yscale_fac, int saction_flag)
void draw_object_channel(struct AnimKeylistDrawList *draw_list, struct bDopeSheet *ads, struct Object *ob, float ypos, float yscale_fac, int saction_flag)
void ED_keylist_draw_list_flush(struct AnimKeylistDrawList *draw_list, struct View2D *v2d)
void draw_summary_channel(struct AnimKeylistDrawList *draw_list, struct bAnimContext *ac, float ypos, float yscale_fac, int saction_flag)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52