2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2006 by Blender Foundation
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL/BL DUAL LICENSE BLOCK *****
27 /** \file RE_render_ext.h
32 #ifndef __RE_RENDER_EXT_H__
33 #define __RE_RENDER_EXT_H__
35 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
36 /* this include is for non-render pipeline exports (still old cruft here) */
37 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
39 /* called by meshtools */
43 void RE_make_sticky(struct Scene *scene, struct View3D *v3d);
45 /* for radiosity module */
53 /* particle.c, effect.c, editmesh_modes.c and brush.c, returns 1 if rgb, 0 otherwise */
54 int externtex(struct MTex *mtex, const float vec[3], float *tin, float *tr, float *tg, float *tb, float *ta, const int thread);
57 void texture_rgb_blend(float in[3], const float tex[3], const float out[3], float fact, float facg, int blendtype);
58 float texture_value_blend(float tex, float out, float fact, float facg, int blendtype);
60 /* node_composite.c */
61 void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float result[4]);
62 void antialias_tagbuf(int xsize, int ysize, char *rectmove);
65 struct Material *RE_init_sample_material(struct Material *orig_mat, struct Scene *scene);
66 void RE_free_sample_material(struct Material *mat);
67 void RE_sample_material_color(struct Material *mat, float color[3], float *alpha, const float volume_co[3], const float surface_co[3],
68 int face_index, short hit_quad, struct DerivedMesh *orcoDm, struct Object *ob);
70 #endif /* __RE_RENDER_EXT_H__ */