Blender V4.5
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 PointDensity;
19struct Tex;
20struct TexMapping;
21struct TexResult;
22
24#define MAXCOLORBAND 32
25
30
31void BKE_texture_default(struct Tex *tex);
32struct Tex *BKE_texture_add(struct Main *bmain, const char *name);
33void BKE_texture_type_set(struct Tex *tex, int type);
34
35void BKE_texture_mtex_default(struct MTex *mtex);
36struct MTex *BKE_texture_mtex_add(void);
40struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot);
41/* UNUSED */
42// void autotexname(struct Tex *tex);
43
45struct Tex *give_current_brush_texture(struct Brush *br);
47
48bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
49void set_active_mtex(struct ID *id, short act);
50
51void set_current_brush_texture(struct Brush *br, struct Tex *tex);
52void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex);
53void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex);
54
56void BKE_texture_mapping_default(struct TexMapping *texmap, int type);
57void BKE_texture_mapping_init(struct TexMapping *texmap);
58
61
67
72bool BKE_texture_is_image_user(const struct Tex *tex);
73
75 const float *tex_co,
76 struct TexResult *texres,
77 struct ImagePool *pool,
78 bool use_color_management);
79
81 const float *tex_co,
82 struct TexResult *texres,
83 bool use_color_management);
84
88void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool);
struct TexMapping * BKE_texture_mapping_add(int type)
Definition texture.cc:229
void BKE_texture_get_value(struct Tex *texture, const float *tex_co, struct TexResult *texres, bool use_color_management)
Definition texture.cc:712
void BKE_texture_mtex_default(struct MTex *mtex)
Definition texture.cc:385
bool BKE_texture_dependsOnTime(const struct Tex *texture)
void BKE_texture_default(struct Tex *tex)
Definition texture.cc:362
struct ColorMapping * BKE_texture_colormapping_add(void)
Definition texture.cc:332
void BKE_texture_mapping_init(struct TexMapping *texmap)
Definition texture.cc:253
void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool)
Definition texture.cc:735
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
Definition texture.cc:447
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:536
void BKE_texture_pointdensity_free(struct PointDensity *pd)
Definition texture.cc:654
struct PointDensity * BKE_texture_pointdensity_add(void)
Definition texture.cc:621
void BKE_texture_pointdensity_init_data(struct PointDensity *pd)
Definition texture.cc:591
bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act)
Definition texture.cc:484
struct MTex * BKE_texture_mtex_add_id(struct ID *id, int slot)
Definition texture.cc:403
void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex)
Definition texture.cc:221
void set_active_mtex(struct ID *id, short act)
Definition texture.cc:510
struct Tex * give_current_particle_texture(struct ParticleSettings *part)
Definition texture.cc:549
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
Definition texture.cc:462
void BKE_texture_type_set(struct Tex *tex, int type)
Definition texture.cc:367
void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex)
Definition texture.cc:566
void BKE_texture_mapping_default(struct TexMapping *texmap, int type)
Definition texture.cc:238
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:690
bool BKE_texture_is_image_user(const struct Tex *tex)
struct MTex * BKE_texture_mtex_add(void)
Definition texture.cc:392
struct Tex * BKE_texture_add(struct Main *bmain, const char *name)
Definition texture.cc:374
void BKE_texture_pointdensity_free_data(struct PointDensity *pd)
Definition texture.cc:642
struct Tex * give_current_brush_texture(struct Brush *br)
Definition texture.cc:531
void BKE_texture_colormapping_default(struct ColorMapping *colormap)
Definition texture.cc:341
BMesh const char void * data
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
Definition DNA_ID.h:404
uint8_t flag
Definition wm_window.cc:139