|
Blender
V2.59
|
00001 /* 00002 * $Id: RE_render_ext.h 35014 2011-02-21 06:58:46Z jesterking $ 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) 2006 by Blender Foundation 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): none yet. 00026 * 00027 * ***** END GPL/BL DUAL LICENSE BLOCK ***** 00028 */ 00034 #ifndef RE_RENDER_EXT_H 00035 #define RE_RENDER_EXT_H 00036 00037 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ 00038 /* this include is for non-render pipeline exports (still old cruft here) */ 00039 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ 00040 00041 /* called by meshtools */ 00042 struct View3D; 00043 struct Scene; 00044 00045 void RE_make_sticky(struct Scene *scene, struct View3D *v3d); 00046 00047 /* for radiosity module */ 00048 struct RadView; 00049 struct RNode; 00050 struct Render; 00051 struct MTex; 00052 struct ImBuf; 00053 00054 // RADIO REMOVED, Maybe this will be useful later 00055 //void RE_zbufferall_radio(struct RadView *vw, struct RNode **rg_elem, int rg_totelem, struct Render *re); 00056 00057 /* particle.c, effect.c, editmesh_modes.c and brush.c, returns 1 if rgb, 0 otherwise */ 00058 int externtex(struct MTex *mtex, float *vec, float *tin, float *tr, float *tg, float *tb, float *ta, const int thread); 00059 00060 /* particle.c */ 00061 void texture_rgb_blend(float *in, float *tex, float *out, float fact, float facg, int blendtype); 00062 float texture_value_blend(float tex, float out, float fact, float facg, int blendtype); 00063 00064 /* node_composite.c */ 00065 void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float *result); 00066 void antialias_tagbuf(int xsize, int ysize, char *rectmove); 00067 00068 #endif /* RE_RENDER_EXT_H */ 00069