Blender V4.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
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct Brush;
15struct ColorBand;
17struct ImagePool;
19struct MTex;
20struct Main;
21struct ParticleSettings;
22struct PointDensity;
23struct Tex;
24struct TexMapping;
25struct TexResult;
26
28#define MAXCOLORBAND 32
29
33void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex);
34
35void BKE_texture_default(struct Tex *tex);
36struct Tex *BKE_texture_add(struct Main *bmain, const char *name);
37void BKE_texture_type_set(struct Tex *tex, int type);
38
39void BKE_texture_mtex_default(struct MTex *mtex);
40struct MTex *BKE_texture_mtex_add(void);
44struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot);
45/* UNUSED */
46// void autotexname(struct Tex *tex);
47
49struct Tex *give_current_brush_texture(struct Brush *br);
51
52bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
53void set_active_mtex(struct ID *id, short act);
54
55void set_current_brush_texture(struct Brush *br, struct Tex *tex);
57void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex);
58
59struct TexMapping *BKE_texture_mapping_add(int type);
60void BKE_texture_mapping_default(struct TexMapping *texmap, int type);
61void BKE_texture_mapping_init(struct TexMapping *texmap);
62
65
71
72bool BKE_texture_dependsOnTime(const struct Tex *texture);
76bool BKE_texture_is_image_user(const struct Tex *tex);
77
78void BKE_texture_get_value_ex(struct Tex *texture,
79 const float *tex_co,
80 struct TexResult *texres,
81 struct ImagePool *pool,
82 bool use_color_management);
83
84void BKE_texture_get_value(struct Tex *texture,
85 const float *tex_co,
86 struct TexResult *texres,
87 bool use_color_management);
88
92void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool);
93
94#ifdef __cplusplus
95}
96#endif
struct TexMapping * BKE_texture_mapping_add(int type)
Definition texture.cc:238
void BKE_texture_get_value(struct Tex *texture, const float *tex_co, struct TexResult *texres, bool use_color_management)
Definition texture.cc:722
void BKE_texture_mtex_default(struct MTex *mtex)
Definition texture.cc:394
bool BKE_texture_dependsOnTime(const struct Tex *texture)
void BKE_texture_default(struct Tex *tex)
Definition texture.cc:371
struct ColorMapping * BKE_texture_colormapping_add(void)
Definition texture.cc:341
void BKE_texture_mapping_init(struct TexMapping *texmap)
Definition texture.cc:262
void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool)
Definition texture.cc:745
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
Definition texture.cc:456
struct PointDensity * BKE_texture_pointdensity_copy(const struct PointDensity *pd, int flag)
void set_current_brush_texture(struct Brush *br, struct Tex *tex)
Definition texture.cc:545
void BKE_texture_pointdensity_free(struct PointDensity *pd)
Definition texture.cc:664
struct PointDensity * BKE_texture_pointdensity_add(void)
Definition texture.cc:630
void BKE_texture_pointdensity_init_data(struct PointDensity *pd)
Definition texture.cc:600
bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act)
Definition texture.cc:493
struct MTex * BKE_texture_mtex_add_id(struct ID *id, int slot)
Definition texture.cc:412
void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex)
Definition texture.cc:230
void set_active_mtex(struct ID *id, short act)
Definition texture.cc:519
struct Tex * give_current_particle_texture(struct ParticleSettings *part)
Definition texture.cc:558
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
Definition texture.cc:471
void BKE_texture_type_set(struct Tex *tex, int type)
Definition texture.cc:376
void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex)
Definition texture.cc:575
void BKE_texture_mapping_default(struct TexMapping *texmap, int type)
Definition texture.cc:247
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:700
bool BKE_texture_is_image_user(const struct Tex *tex)
struct MTex * BKE_texture_mtex_add(void)
Definition texture.cc:401
struct Tex * BKE_texture_add(struct Main *bmain, const char *name)
Definition texture.cc:383
void BKE_texture_pointdensity_free_data(struct PointDensity *pd)
Definition texture.cc:652
struct Tex * give_current_brush_texture(struct Brush *br)
Definition texture.cc:540
void BKE_texture_colormapping_default(struct ColorMapping *colormap)
Definition texture.cc:350
FreestyleLineStyle linestyle
Definition DNA_ID.h:413
uint8_t flag
Definition wm_window.cc:138