Blender  V3.3
BKE_texture.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 #pragma once
4 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 struct Brush;
14 struct ColorBand;
15 struct FreestyleLineStyle;
16 struct ImagePool;
18 struct MTex;
19 struct Main;
20 struct ParticleSettings;
21 struct PointDensity;
22 struct Tex;
23 struct TexMapping;
24 struct TexResult;
25 
27 #define MAXCOLORBAND 32
28 
32 void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex);
33 
34 void BKE_texture_default(struct Tex *tex);
35 struct Tex *BKE_texture_add(struct Main *bmain, const char *name);
36 void BKE_texture_type_set(struct Tex *tex, int type);
37 
38 void BKE_texture_mtex_default(struct MTex *mtex);
39 struct MTex *BKE_texture_mtex_add(void);
43 struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot);
44 /* UNUSED */
45 // void autotexname(struct Tex *tex);
46 
48 struct Tex *give_current_brush_texture(struct Brush *br);
50 
51 bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
52 void set_active_mtex(struct ID *id, short act);
53 
54 void set_current_brush_texture(struct Brush *br, struct Tex *tex);
56 void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex);
57 
59 void BKE_texture_mapping_default(struct TexMapping *texmap, int type);
60 void BKE_texture_mapping_init(struct TexMapping *texmap);
61 
63 void BKE_texture_colormapping_default(struct ColorMapping *colormap);
64 
70 
71 bool BKE_texture_dependsOnTime(const struct Tex *texture);
75 bool BKE_texture_is_image_user(const struct Tex *tex);
76 
78  struct Tex *texture,
79  const float *tex_co,
80  struct TexResult *texres,
81  struct ImagePool *pool,
82  bool use_color_management);
83 
84 void BKE_texture_get_value(const struct Scene *scene,
85  struct Tex *texture,
86  const float *tex_co,
87  struct TexResult *texres,
88  bool use_color_management);
89 
93 void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool);
94 
95 #ifdef __cplusplus
96 }
97 #endif
void BKE_texture_mtex_default(struct MTex *mtex)
Definition: texture.c:384
bool BKE_texture_dependsOnTime(const struct Tex *texture)
Definition: texture.c:670
void BKE_texture_default(struct Tex *tex)
Definition: texture.c:361
void BKE_texture_mapping_init(struct TexMapping *texmap)
Definition: texture.c:253
void BKE_texture_fetch_images_for_pool(struct Tex *texture, struct ImagePool *pool)
Definition: texture.c:743
void set_current_brush_texture(struct Brush *br, struct Tex *tex)
Definition: texture.c:535
void BKE_texture_pointdensity_free(struct PointDensity *pd)
Definition: texture.c:652
void BKE_texture_pointdensity_init_data(struct PointDensity *pd)
Definition: texture.c:589
bool give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act)
Definition: texture.c:483
struct MTex * BKE_texture_mtex_add(void)
Definition: texture.c:391
void BKE_texture_mtex_foreach_id(struct LibraryForeachIDData *data, struct MTex *mtex)
Definition: texture.c:221
void set_active_mtex(struct ID *id, short act)
Definition: texture.c:509
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
Definition: texture.c:461
void BKE_texture_type_set(struct Tex *tex, int type)
Definition: texture.c:366
void set_current_particle_texture(struct ParticleSettings *part, struct Tex *tex)
Definition: texture.c:564
struct PointDensity * BKE_texture_pointdensity_copy(const struct PointDensity *pd, int flag)
void BKE_texture_mapping_default(struct TexMapping *texmap, int type)
Definition: texture.c:238
void BKE_texture_get_value(const struct Scene *scene, struct Tex *texture, const float *tex_co, struct TexResult *texres, bool use_color_management)
struct Tex * give_current_brush_texture(struct Brush *br)
Definition: texture.c:530
void BKE_texture_get_value_ex(const struct Scene *scene, struct Tex *texture, const float *tex_co, struct TexResult *texres, struct ImagePool *pool, bool use_color_management)
bool BKE_texture_is_image_user(const struct Tex *tex)
Definition: texture.c:659
struct MTex * BKE_texture_mtex_add_id(struct ID *id, int slot)
Definition: texture.c:402
struct TexMapping * BKE_texture_mapping_add(int type)
Definition: texture.c:229
struct Tex * give_current_particle_texture(struct ParticleSettings *part)
Definition: texture.c:547
struct ColorMapping * BKE_texture_colormapping_add(void)
Definition: texture.c:331
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
Definition: texture.c:446
void BKE_texture_pointdensity_free_data(struct PointDensity *pd)
Definition: texture.c:640
void BKE_texture_colormapping_default(struct ColorMapping *colormap)
Definition: texture.c:340
struct Tex * BKE_texture_add(struct Main *bmain, const char *name)
Definition: texture.c:373
struct PointDensity * BKE_texture_pointdensity_add(void)
Definition: texture.c:619
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Scene scene
FreestyleLineStyle linestyle
Definition: DNA_ID.h:368
Definition: BKE_main.h:121