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