Blender V2.61 - r43446

RE_render_ext.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) 2006 by Blender Foundation
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL/BL DUAL LICENSE BLOCK *****
00026  */
00032 #ifndef RE_RENDER_EXT_H
00033 #define RE_RENDER_EXT_H
00034 
00035 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
00036 /* this include is for non-render pipeline exports (still old cruft here) */
00037 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
00038 
00039 /* called by meshtools */
00040 struct View3D;
00041 struct Scene;
00042 
00043 void    RE_make_sticky(struct Scene *scene, struct View3D *v3d);
00044     
00045 /* for radiosity module */  
00046 struct RadView;
00047 struct RNode;
00048 struct Render;
00049 struct MTex;
00050 struct ImBuf;
00051 struct DerivedMesh;
00052 
00053 // RADIO REMOVED, Maybe this will be useful later
00054 //void    RE_zbufferall_radio(struct RadView *vw, struct RNode **rg_elem, int rg_totelem, struct Render *re);
00055 
00056 /* particle.c, effect.c, editmesh_modes.c and brush.c, returns 1 if rgb, 0 otherwise */
00057 int externtex(struct MTex *mtex, const float vec[3], float *tin, float *tr, float *tg, float *tb, float *ta, const int thread);
00058 
00059 /* particle.c */
00060 void texture_rgb_blend(float in[3], const float tex[3], const float out[3], float fact, float facg, int blendtype);
00061 float texture_value_blend(float tex, float out, float fact, float facg, int blendtype);
00062 
00063 /* node_composite.c */
00064 void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float *result);
00065 void antialias_tagbuf(int xsize, int ysize, char *rectmove);
00066 
00067 /* dynamicpaint.c */
00068 struct Material *RE_init_sample_material(struct Material *orig_mat, struct Scene *scene);
00069 void RE_free_sample_material(struct Material *mat);
00070 void RE_sample_material_color(struct Material *mat, float color[3], float *alpha, const float volume_co[3], const float surface_co[3],
00071                            int face_index, short hit_quad, struct DerivedMesh *orcoDm, struct Object *ob);
00072 
00073 #endif /* RE_RENDER_EXT_H */
00074