~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/editors/include/ED_image.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
struct ToolSettings;
39
39
struct uiBlock;
40
40
struct wmWindowManager;
 
41
struct ARegion;
 
42
struct Scene;
41
43
 
42
 
/* space_image.c, exported for transform */
 
44
/* image_edit.c, exported for transform */
43
45
struct Image *ED_space_image(struct SpaceImage *sima);
44
 
void ED_space_image_set(struct SpaceImage *sima, struct Scene *scene, struct Object *obedit, struct Image *ima);
 
46
void          ED_space_image_set(struct SpaceImage *sima, struct Scene *scene, struct Object *obedit, struct Image *ima);
 
47
struct Mask  *ED_space_image_get_mask(struct SpaceImage *sima);
 
48
void          ED_space_image_set_mask(struct bContext *C, struct SpaceImage *sima, struct Mask *mask);
45
49
 
 
50
int ED_space_image_color_sample(struct SpaceImage *sima, struct ARegion *ar, int mval[2], float r_col[3]);
46
51
struct ImBuf *ED_space_image_acquire_buffer(struct SpaceImage *sima, void **lock_r);
47
 
void ED_space_image_release_buffer(struct SpaceImage *sima, void *lock);
 
52
void ED_space_image_release_buffer(struct SpaceImage *sima, struct ImBuf *ibuf, void *lock);
48
53
int ED_space_image_has_buffer(struct SpaceImage *sima);
49
54
 
50
 
void ED_space_image_size(struct SpaceImage *sima, int *width, int *height);
51
 
void ED_space_image_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
52
 
void ED_space_image_zoom(struct SpaceImage *sima, struct ARegion *ar, float *zoomx, float *zoomy);
53
 
void ED_space_image_uv_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
 
55
void ED_space_image_get_size(struct SpaceImage *sima, int *width, int *height);
 
56
void ED_space_image_get_size_fl(struct SpaceImage *sima, float size[2]);
 
57
void ED_space_image_get_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
 
58
void ED_space_image_get_zoom(struct SpaceImage *sima, struct ARegion *ar, float *zoomx, float *zoomy);
 
59
void ED_space_image_get_uv_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
54
60
 
55
61
void ED_space_image_paint_update(struct wmWindowManager *wm, struct ToolSettings *settings);
56
62
void ED_space_image_uv_sculpt_update(struct wmWindowManager *wm, struct ToolSettings *settings);
57
63
 
58
 
void ED_image_size(struct Image *ima, int *width, int *height);
59
 
void ED_image_aspect(struct Image *ima, float *aspx, float *aspy);
60
 
void ED_image_uv_aspect(struct Image *ima, float *aspx, float *aspy);
 
64
void ED_image_get_uv_aspect(struct Image *ima, struct ImageUser *iuser, float *aspx, float *aspy);
 
65
void ED_image_mouse_pos(struct SpaceImage *sima, struct ARegion *ar, const int mval[2], float co[2]);
 
66
void ED_image_point_pos(struct SpaceImage *sima, struct ARegion *ar, float x, float y, float *xr, float *yr);
 
67
void ED_image_point_pos__reverse(struct SpaceImage *sima, struct ARegion *ar, const float co[2], float r_co[2]);
61
68
 
62
69
int ED_space_image_show_render(struct SpaceImage *sima);
63
70
int ED_space_image_show_paint(struct SpaceImage *sima);
64
71
int ED_space_image_show_uvedit(struct SpaceImage *sima, struct Object *obedit);
65
72
int ED_space_image_show_uvshadow(struct SpaceImage *sima, struct Object *obedit);
66
73
 
 
74
int ED_space_image_check_show_maskedit(struct Scene *scene, struct SpaceImage *sima);
 
75
int ED_space_image_maskedit_poll(struct bContext *C);
 
76
int ED_space_image_maskedit_mask_poll(struct bContext *C);
 
77
 
67
78
/* UI level image (texture) updating... render calls own stuff (too) */
68
79
void ED_image_update_frame(const struct Main *mainp, int cfra);
69
80
 
70
 
void ED_image_draw_info(struct ARegion *ar, int color_manage, int channels, int x, int y,
 
81
void ED_image_draw_info(struct Scene *scene, struct ARegion *ar, int color_manage, int use_default_view, int channels, int x, int y,
71
82
                        const unsigned char cp[4], const float fp[4], int *zp, float *zpf);
72
83
 
73
84
#endif /* __ED_IMAGE_H__ */