Blender V2.61 - r43446

ED_image.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version. 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2008 Blender Foundation.
00019  * All rights reserved.
00020  * 
00021  * Contributor(s): Blender Foundation
00022  *
00023  * ***** END GPL LICENSE BLOCK *****
00024  */
00025 
00030 #ifndef ED_IMAGE_H
00031 #define ED_IMAGE_H
00032 
00033 struct SpaceImage;
00034 struct Main;
00035 struct bContext;
00036 struct Image;
00037 struct ImageUser;
00038 struct ToolSettings;
00039 struct uiBlock;
00040 struct wmWindowManager;
00041 
00042 /* space_image.c, exported for transform */
00043 struct Image *ED_space_image(struct SpaceImage *sima);
00044 void ED_space_image_set(struct SpaceImage *sima, struct Scene *scene, struct Object *obedit, struct Image *ima);
00045 
00046 struct ImBuf *ED_space_image_acquire_buffer(struct SpaceImage *sima, void **lock_r);
00047 void ED_space_image_release_buffer(struct SpaceImage *sima, void *lock);
00048 int ED_space_image_has_buffer(struct SpaceImage *sima);
00049 
00050 void ED_space_image_size(struct SpaceImage *sima, int *width, int *height);
00051 void ED_space_image_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
00052 void ED_space_image_zoom(struct SpaceImage *sima, struct ARegion *ar, float *zoomx, float *zoomy);
00053 void ED_space_image_uv_aspect(struct SpaceImage *sima, float *aspx, float *aspy);
00054 
00055 void ED_space_image_paint_update(struct wmWindowManager *wm, struct ToolSettings *settings);
00056 
00057 void ED_image_size(struct Image *ima, int *width, int *height);
00058 void ED_image_aspect(struct Image *ima, float *aspx, float *aspy);
00059 void ED_image_uv_aspect(struct Image *ima, float *aspx, float *aspy);
00060 
00061 int ED_space_image_show_render(struct SpaceImage *sima);
00062 int ED_space_image_show_paint(struct SpaceImage *sima);
00063 int ED_space_image_show_uvedit(struct SpaceImage *sima, struct Object *obedit);
00064 int ED_space_image_show_uvshadow(struct SpaceImage *sima, struct Object *obedit);
00065 
00066 /* UI level image (texture) updating... render calls own stuff (too) */
00067 void ED_image_update_frame(const struct Main *mainp, int cfra);
00068 
00069 void ED_image_draw_info(struct ARegion *ar, int color_manage, int channels,
00070                         int x, int y, const char cp[4], const float fp[4], int *zp, float *zpf);
00071 
00072 #endif /* ED_IMAGE_H */
00073