Blender V5.0
BKE_texture.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10struct Brush;
11struct ColorBand;
13struct ImagePool;
15struct MTex;
16struct Main;
17struct ParticleSettings;
18struct Tex;
19struct TexMapping;
20struct TexResult;
21
23#define MAXCOLORBAND 32
24
29
30void BKE_texture_default(struct Tex *tex);
31struct Tex *BKE_texture_add(struct Main *bmain, const char *name);
32void BKE_texture_type_set(struct Tex *tex, int type);
33
34void BKE_texture_mtex_default(struct MTex *mtex);
35struct MTex *BKE_texture_mtex_add(void);
39struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot);
40/* UNUSED */
41// void autotexname(struct Tex *tex);
42
44struct Tex *give_current_brush_texture(struct Brush *br);
46
47bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
48void set_active_mtex(struct ID *id, short act);
49
50void set_current_brush_texture(struct Brush *br, struct Tex *tex);
51void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex);
52void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex);
53
55void BKE_texture_mapping_default(struct TexMapping *texmap, int type);
56void BKE_texture_mapping_init(struct TexMapping *texmap);
57
60
65bool BKE_texture_is_image_user(const struct Tex *tex);
66
68 const float *tex_co,
69 struct TexResult *texres,
70 struct ImagePool *pool,
71 bool use_color_management);
72
74 const float *tex_co,
75 struct TexResult *texres,
76 bool use_color_management);
77
81void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool);
struct TexMapping * BKE_texture_mapping_add(int type)
Definition texture.cc:225
void BKE_texture_get_value(struct Tex *texture, const float *tex_co, struct TexResult *texres, bool use_color_management)
Definition texture.cc:638
void BKE_texture_mtex_default(struct MTex *mtex)
Definition texture.cc:381
bool BKE_texture_dependsOnTime(const struct Tex *texture)
void BKE_texture_default(struct Tex *tex)
Definition texture.cc:358
struct ColorMapping * BKE_texture_colormapping_add(void)
Definition texture.cc:328
void BKE_texture_mapping_init(struct TexMapping *texmap)
Definition texture.cc:249
void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool)
Definition texture.cc:661
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
Definition texture.cc:443
void set_current_brush_texture(struct Brush *br, struct Tex *tex)
Definition texture.cc:532
bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act)
Definition texture.cc:480
struct MTex * BKE_texture_mtex_add_id(struct ID *id, int slot)
Definition texture.cc:399
void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex)
Definition texture.cc:217
void set_active_mtex(struct ID *id, short act)
Definition texture.cc:506
struct Tex * give_current_particle_texture(struct ParticleSettings *part)
Definition texture.cc:545
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
Definition texture.cc:458
void BKE_texture_type_set(struct Tex *tex, int type)
Definition texture.cc:363
void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex)
Definition texture.cc:562
void BKE_texture_mapping_default(struct TexMapping *texmap, int type)
Definition texture.cc:234
void BKE_texture_get_value_ex(struct Tex *texture, const float *tex_co, struct TexResult *texres, struct ImagePool *pool, bool use_color_management)
Definition texture.cc:616
bool BKE_texture_is_image_user(const struct Tex *tex)
struct MTex * BKE_texture_mtex_add(void)
Definition texture.cc:388
struct Tex * BKE_texture_add(struct Main *bmain, const char *name)
Definition texture.cc:370
struct Tex * give_current_brush_texture(struct Brush *br)
Definition texture.cc:527
void BKE_texture_colormapping_default(struct ColorMapping *colormap)
Definition texture.cc:337
BMesh const char void * data
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
const char * name
Definition DNA_ID.h:414