Blender V2.61 - r43446
Defines | Functions

BKE_texture.h File Reference

Go to the source code of this file.

Defines

#define MAXCOLORBAND   32

Functions

void free_texture (struct Tex *t)
int test_dlerr (const char *name, const char *symbol)
void open_plugin_tex (struct PluginTex *pit)
struct PluginTexadd_plugin_tex (char *str)
void free_plugin_tex (struct PluginTex *pit)
void init_colorband (struct ColorBand *coba, int rangetype)
struct ColorBandadd_colorband (int rangetype)
int do_colorband (const struct ColorBand *coba, float in, float out[4])
void colorband_table_RGBA (struct ColorBand *coba, float **array, int *size)
int vergcband (const void *a1, const void *a2)
struct CBDatacolorband_element_add (struct ColorBand *coba, float position)
int colorband_element_remove (struct ColorBand *coba, int index)
void default_tex (struct Tex *tex)
struct Texadd_texture (const char *name)
void tex_set_type (struct Tex *tex, int type)
void default_mtex (struct MTex *mtex)
struct MTexadd_mtex (void)
struct MTexadd_mtex_id (struct ID *id, int slot)
struct Texcopy_texture (struct Tex *tex)
struct Texlocalize_texture (struct Tex *tex)
void make_local_texture (struct Tex *tex)
void autotexname (struct Tex *tex)
struct Texgive_current_object_texture (struct Object *ob)
struct Texgive_current_material_texture (struct Material *ma)
struct Texgive_current_lamp_texture (struct Lamp *la)
struct Texgive_current_world_texture (struct World *world)
struct Texgive_current_brush_texture (struct Brush *br)
struct Texgive_current_particle_texture (struct ParticleSettings *part)
struct bNodegive_current_material_texture_node (struct Material *ma)
int give_active_mtex (struct ID *id, struct MTex ***mtex_ar, short *act)
void set_active_mtex (struct ID *id, short act)
void set_current_brush_texture (struct Brush *br, struct Tex *tex)
void set_current_world_texture (struct World *wo, struct Tex *tex)
void set_current_material_texture (struct Material *ma, struct Tex *tex)
void set_current_lamp_texture (struct Lamp *la, struct Tex *tex)
void set_current_particle_texture (struct ParticleSettings *part, struct Tex *tex)
int has_current_material_texture (struct Material *ma)
struct TexMappingadd_tex_mapping (void)
void default_tex_mapping (struct TexMapping *texmap)
void init_tex_mapping (struct TexMapping *texmap)
struct ColorMappingadd_color_mapping (void)
void default_color_mapping (struct ColorMapping *colormap)
void BKE_free_envmapdata (struct EnvMap *env)
void BKE_free_envmap (struct EnvMap *env)
struct EnvMapBKE_add_envmap (void)
struct EnvMapBKE_copy_envmap (struct EnvMap *env)
void BKE_free_pointdensitydata (struct PointDensity *pd)
void BKE_free_pointdensity (struct PointDensity *pd)
struct PointDensityBKE_add_pointdensity (void)
struct PointDensityBKE_copy_pointdensity (struct PointDensity *pd)
void BKE_free_voxeldatadata (struct VoxelData *vd)
void BKE_free_voxeldata (struct VoxelData *vd)
struct VoxelDataBKE_add_voxeldata (void)
struct VoxelDataBKE_copy_voxeldata (struct VoxelData *vd)
void BKE_free_oceantex (struct OceanTex *ot)
struct OceanTexBKE_add_oceantex (void)
struct OceanTexBKE_copy_oceantex (struct OceanTex *ot)
int BKE_texture_dependsOnTime (const struct Tex *texture)

Detailed Description

Since:
March 2001
Author:
nzc

Definition in file BKE_texture.h.


Define Documentation

#define MAXCOLORBAND   32

Definition at line 59 of file BKE_texture.h.

Referenced by colorband_element_add(), colorband_flip_cb(), and init_colorband().


Function Documentation

struct ColorMapping* add_color_mapping ( void  ) [read]

Definition at line 270 of file texture.c.

References default_color_mapping(), and MEM_callocN().

struct ColorBand* add_colorband ( int  rangetype) [read]
struct MTex* add_mtex ( void  ) [read]
struct MTex* add_mtex_id ( struct ID id,
int  slot 
) [read]

Definition at line 774 of file texture.c.

References add_mtex(), give_active_mtex(), i, id_us_min(), MAX_MTEX, MEM_freeN(), and NULL.

struct PluginTex* add_plugin_tex ( char *  str) [read]
struct TexMapping* add_tex_mapping ( void  ) [read]

Definition at line 207 of file texture.c.

References default_tex_mapping(), and MEM_callocN().

Referenced by node_composit_init_map_value(), and node_shader_init_mapping().

struct Tex* add_texture ( const char *  name) [read]
void autotexname ( struct Tex tex)
struct EnvMap* BKE_add_envmap ( void  ) [read]
struct OceanTex* BKE_add_oceantex ( void  ) [read]

Definition at line 1529 of file texture.c.

References MEM_callocN(), NULL, OceanTex::object, OceanTex::output, and TEX_OCN_DISPLACEMENT.

Referenced by tex_set_type().

struct PointDensity* BKE_add_pointdensity ( void  ) [read]
struct VoxelData* BKE_add_voxeldata ( void  ) [read]
struct EnvMap* BKE_copy_envmap ( struct EnvMap env) [read]

Definition at line 1375 of file texture.c.

References EnvMap::cube, id_us_plus(), EnvMap::ima, MEM_dupallocN(), NULL, and EnvMap::ok.

Referenced by copy_texture(), and localize_texture().

struct OceanTex* BKE_copy_oceantex ( struct OceanTex ot) [read]

Definition at line 1540 of file texture.c.

References MEM_dupallocN().

Referenced by copy_texture(), and localize_texture().

struct PointDensity* BKE_copy_pointdensity ( struct PointDensity pd) [read]
struct VoxelData* BKE_copy_voxeldata ( struct VoxelData vd) [read]

Definition at line 1517 of file texture.c.

References VoxelData::dataset, MEM_dupallocN(), and NULL.

void BKE_free_envmap ( struct EnvMap env)

Definition at line 1404 of file texture.c.

References BKE_free_envmapdata(), and MEM_freeN().

Referenced by free_texture().

void BKE_free_envmapdata ( struct EnvMap env)
void BKE_free_oceantex ( struct OceanTex ot)

Definition at line 1547 of file texture.c.

References MEM_freeN().

Referenced by free_texture().

void BKE_free_pointdensity ( struct PointDensity pd)

Definition at line 1476 of file texture.c.

References BKE_free_pointdensitydata(), and MEM_freeN().

Referenced by free_texture().

void BKE_free_pointdensitydata ( struct PointDensity pd)
void BKE_free_voxeldata ( struct VoxelData vd)

Definition at line 1493 of file texture.c.

References BKE_free_voxeldatadata(), and MEM_freeN().

Referenced by free_texture().

void BKE_free_voxeldatadata ( struct VoxelData vd)

Definition at line 1484 of file texture.c.

References VoxelData::dataset, MEM_freeN(), and NULL.

Referenced by BKE_free_voxeldata().

int BKE_texture_dependsOnTime ( const struct Tex texture)

Definition at line 1554 of file texture.c.

References Tex::adt, ELEM, Tex::ima, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, Tex::plugin, Image::source, TEX_NOISE, and Tex::type.

Referenced by dependsOnTime().

struct CBData* colorband_element_add ( struct ColorBand coba,
float  position 
) [read]
int colorband_element_remove ( struct ColorBand coba,
int  index 
)

Definition at line 521 of file texture.c.

References ColorBand::cur, ColorBand::data, and ColorBand::tot.

Referenced by colorband_del_cb().

void colorband_table_RGBA ( struct ColorBand coba,
float **  array,
int *  size 
)

Definition at line 461 of file texture.c.

References CM_TABLE, do_colorband(), MEM_callocN(), and size().

Referenced by do_colorband_blend(), and gpu_shader_valtorgb().

struct Tex* copy_texture ( struct Tex tex) [read]
void default_color_mapping ( struct ColorMapping colormap)
void default_mtex ( struct MTex mtex)
void default_tex ( struct Tex tex)
void default_tex_mapping ( struct TexMapping texmap)
int do_colorband ( const struct ColorBand coba,
float  in,
float  out[4] 
)
void free_plugin_tex ( struct PluginTex pit)

Definition at line 197 of file texture.c.

References MEM_freeN(), and NULL.

Referenced by free_texture().

void free_texture ( struct Tex t)
int give_active_mtex ( struct ID id,
struct MTex ***  mtex_ar,
short *  act 
)

Definition at line 1170 of file texture.c.

References FALSE, GS, ID_LA, ID_MA, ID_PA, ID_WO, ID::name, NULL, and TRUE.

Referenced by add_mtex_id(), and texture_slot_move().

struct Tex* give_current_brush_texture ( struct Brush br) [read]

Definition at line 1304 of file texture.c.

References Brush::mtex, and MTex::tex.

Referenced by buttons_context_path_texture(), and snode_set_context().

struct Tex* give_current_lamp_texture ( struct Lamp la) [read]

Definition at line 1101 of file texture.c.

References Lamp::mtex, NULL, MTex::tex, and Lamp::texact.

Referenced by buttons_context_path_texture(), and give_current_object_texture().

struct Tex* give_current_material_texture ( struct Material ma) [read]
struct bNode* give_current_material_texture_node ( struct Material ma) [read]
struct Tex* give_current_object_texture ( struct Object ob) [read]
struct Tex* give_current_particle_texture ( struct ParticleSettings part) [read]

Definition at line 1320 of file texture.c.

References ParticleSettings::mtex, NULL, MTex::tex, and ParticleSettings::texact.

Referenced by buttons_context_path_texture().

struct Tex* give_current_world_texture ( struct World world) [read]

Definition at line 1269 of file texture.c.

References World::mtex, NULL, MTex::tex, and World::texact.

Referenced by buttons_context_path_texture(), and snode_set_context().

int has_current_material_texture ( struct Material ma)

Definition at line 1255 of file texture.c.

References ID_TE, nodeGetActiveID(), Material::nodetree, NULL, and Material::use_nodes.

void init_colorband ( struct ColorBand coba,
int  rangetype 
)
void init_tex_mapping ( struct TexMapping texmap)
struct Tex* localize_texture ( struct Tex tex) [read]
void make_local_texture ( struct Tex tex)
void open_plugin_tex ( struct PluginTex pit)
void set_active_mtex ( struct ID id,
short  act 
)

Definition at line 1198 of file texture.c.

References GS, ID_LA, ID_MA, ID_PA, ID_WO, MAX_MTEX, and ID::name.

Referenced by texture_slot_move().

void set_current_brush_texture ( struct Brush br,
struct Tex tex 
)

Definition at line 1309 of file texture.c.

References Tex::id, id_us_min(), id_us_plus(), Brush::mtex, and MTex::tex.

void set_current_lamp_texture ( struct Lamp la,
struct Tex tex 
)
void set_current_material_texture ( struct Material ma,
struct Tex tex 
)
void set_current_particle_texture ( struct ParticleSettings part,
struct Tex tex 
)
void set_current_world_texture ( struct World wo,
struct Tex tex 
)
int test_dlerr ( const char *  name,
const char *  symbol 
)

Definition at line 79 of file texture.c.

References BLI_dynlib_get_error_as_string(), err, and NULL.

Referenced by open_plugin_seq(), and open_plugin_tex().

void tex_set_type ( struct Tex tex,
int  type 
)
int vergcband ( const void *  a1,
const void *  a2 
)

Definition at line 472 of file texture.c.

References CBData::pos.

Referenced by colorband_element_add().