18
18
* You should have received a copy of the GNU General Public License
19
19
* along with this program; if not, write to the Free Software Foundation,
20
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
22
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23
23
* All rights reserved.
54
65
struct ColorBand *add_colorband(int rangetype);
55
66
int do_colorband(struct ColorBand *coba, float in, float out[4]);
56
67
void colorband_table_RGBA(struct ColorBand *coba, float **array, int *size);
68
int vergcband(const void *a1, const void *a2);
69
struct CBData *colorband_element_add(struct ColorBand *coba, float position);
70
int colorband_element_remove(struct ColorBand *coba, int index);
58
72
void default_tex(struct Tex *tex);
59
struct Tex *add_texture(char *name);
73
struct Tex *add_texture(const char *name);
74
void tex_set_type(struct Tex *tex, int type);
60
75
void default_mtex(struct MTex *mtex);
61
76
struct MTex *add_mtex(void);
77
struct MTex *add_mtex_id(struct ID *id, int slot);
62
78
struct Tex *copy_texture(struct Tex *tex);
63
79
void make_local_texture(struct Tex *tex);
64
80
void autotexname(struct Tex *tex);
65
struct Tex *give_current_texture(struct Object *ob, int act);
66
struct Tex *give_current_world_texture(void);
82
struct Tex *give_current_object_texture(struct Object *ob);
83
struct Tex *give_current_material_texture(struct Material *ma);
84
struct Tex *give_current_lamp_texture(struct Lamp *la);
85
struct Tex *give_current_world_texture(struct World *world);
86
struct Tex *give_current_brush_texture(struct Brush *br);
88
struct bNode *give_current_material_texture_node(struct Material *ma);
90
int give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
91
void set_active_mtex(struct ID *id, short act);
93
void set_current_brush_texture(struct Brush *br, struct Tex *tex);
94
void set_current_world_texture(struct World *wo, struct Tex *tex);
95
void set_current_material_texture(struct Material *ma, struct Tex *tex);
96
void set_current_lamp_texture(struct Lamp *la, struct Tex *tex);
68
98
struct TexMapping *add_mapping(void);
69
99
void init_mapping(struct TexMapping *texmap);
74
104
struct EnvMap *BKE_add_envmap(void);
75
105
struct EnvMap *BKE_copy_envmap(struct EnvMap *env);
107
void BKE_free_pointdensitydata(struct PointDensity *pd);
108
void BKE_free_pointdensity(struct PointDensity *pd);
109
struct PointDensity *BKE_add_pointdensity(void);
110
struct PointDensity *BKE_copy_pointdensity(struct PointDensity *pd);
112
void BKE_free_voxeldatadata(struct VoxelData *vd);
113
void BKE_free_voxeldata(struct VoxelData *vd);
114
struct VoxelData *BKE_add_voxeldata(void);
115
struct VoxelData *BKE_copy_voxeldata(struct VoxelData *vd);
77
117
int BKE_texture_dependsOnTime(const struct Tex *texture);