Blender V5.3
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
10namespace blender {
11
12struct Brush;
13struct ColorBand;
15struct ImagePool;
17struct MTex;
18struct Main;
19struct ParticleSettings;
20struct Tex;
21struct TexMapping;
22struct TexResult;
23
24enum eTex_Type : short;
25
27#define MAXCOLORBAND 32
28
32void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex);
33
34void BKE_texture_default(struct Tex *tex);
35struct Tex *BKE_texture_add(struct Main *bmain, const char *name);
36void BKE_texture_type_set(struct Tex *tex, eTex_Type type);
37
38void BKE_texture_mtex_default(struct MTex *mtex);
39struct MTex *BKE_texture_mtex_add();
43struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot);
44/* UNUSED */
45// void autotexname(struct Tex *tex);
46
47struct Tex *give_current_linestyle_texture(struct FreestyleLineStyle *linestyle);
48struct Tex *give_current_brush_texture(struct Brush *br);
49struct Tex *give_current_particle_texture(struct ParticleSettings *part);
50
51bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
52void set_active_mtex(struct ID *id, short act);
53
54void set_current_brush_texture(struct Brush *br, struct Tex *tex);
55void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex);
56void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex);
57
58struct TexMapping *BKE_texture_mapping_add(int type);
59void BKE_texture_mapping_default(struct TexMapping *texmap, int type);
60void BKE_texture_mapping_init(struct TexMapping *texmap);
61
62struct ColorMapping *BKE_texture_colormapping_add();
63void BKE_texture_colormapping_default(struct ColorMapping *colormap);
64
69bool BKE_texture_is_image_user(const struct Tex *tex);
70
72 const float *tex_co,
73 struct TexResult *texres,
74 struct ImagePool *pool,
75 bool use_color_management);
76
78 const float *tex_co,
79 struct TexResult *texres,
80 bool use_color_management);
81
85void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool);
86
87} // namespace blender
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
BMesh Iterators.
struct Tex * give_current_particle_texture(struct ParticleSettings *part)
Definition texture.cc:545
struct MTex * BKE_texture_mtex_add()
Definition texture.cc:388
void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex)
Definition texture.cc:562
struct TexMapping * BKE_texture_mapping_add(int type)
Definition texture.cc:225
bool BKE_texture_is_image_user(const struct Tex *tex)
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:618
struct MTex * BKE_texture_mtex_add_id(struct ID *id, int slot)
Definition texture.cc:399
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:663
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
BMesh const char void * data
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
Definition texture.cc:443
void BKE_texture_mtex_default(struct MTex *mtex)
Definition texture.cc:381
void BKE_texture_default(struct Tex *tex)
Definition texture.cc:358
struct ColorMapping * BKE_texture_colormapping_add()
Definition texture.cc:328
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
Definition texture.cc:458
struct Tex * give_current_brush_texture(struct Brush *br)
Definition texture.cc:527
void BKE_texture_mapping_default(struct TexMapping *texmap, int type)
Definition texture.cc:234
void BKE_texture_type_set(struct Tex *tex, eTex_Type type)
Definition texture.cc:363
void BKE_texture_get_value(struct Tex *texture, const float *tex_co, struct TexResult *texres, bool use_color_management)
Definition texture.cc:640
void set_active_mtex(struct ID *id, short act)
Definition texture.cc:506
void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex)
Definition texture.cc:217
struct Tex * BKE_texture_add(struct Main *bmain, const char *name)
Definition texture.cc:370
void BKE_texture_colormapping_default(struct ColorMapping *colormap)
Definition texture.cc:337
bool BKE_texture_dependsOnTime(const struct Tex *texture)