~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_texture.h

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Roy
  • Date: 2011-02-08 22:20:54 UTC
  • mfrom: (1.4.2 upstream)
  • mto: (14.2.6 sid) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: james.westby@ubuntu.com-20110208222054-kk0gwa4bu8h5lyq4
Tags: upstream-2.56.1-beta-svn34076
ImportĀ upstreamĀ versionĀ 2.56.1-beta-svn34076

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * blenlib/BKE_texture.h (mar-2001 nzc)
3
3
 *      
4
 
 * $Id: BKE_texture.h 16366 2008-09-04 20:51:28Z blendix $ 
 
4
 * $Id: BKE_texture.h 32309 2010-10-05 00:05:14Z jesterking $ 
5
5
 *
6
6
 * ***** BEGIN GPL LICENSE BLOCK *****
7
7
 *
17
17
 *
18
18
 * You should have received a copy of the GNU General Public License
19
19
 * along with this program; if not, write to the Free Software Foundation,
20
 
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
21
 *
22
22
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23
23
 * All rights reserved.
31
31
#ifndef BKE_TEXTURE_H
32
32
#define BKE_TEXTURE_H
33
33
 
34
 
struct Tex;
 
34
#ifdef __cplusplus
 
35
extern "C" {
 
36
#endif
 
37
 
 
38
struct bNode;
 
39
struct Brush;
 
40
struct ColorBand;
 
41
struct EnvMap;
 
42
struct HaloRen;
 
43
struct Lamp;
 
44
struct LampRen;
 
45
struct Material;
35
46
struct MTex;
36
47
struct PluginTex;
37
 
struct LampRen;
38
 
struct ColorBand;
39
 
struct HaloRen;
 
48
struct PointDensity;
 
49
struct Tex;
40
50
struct TexMapping;
41
 
struct EnvMap;
 
51
struct VoxelData;
 
52
struct World;
42
53
 
43
54
/*  in ColorBand struct */
44
55
#define MAXCOLORBAND 32
54
65
struct ColorBand *add_colorband(int rangetype);
55
66
int do_colorband(struct ColorBand *coba, float in, float out[4]);
56
67
void colorband_table_RGBA(struct ColorBand *coba, float **array, int *size);
 
68
int vergcband(const void *a1, const void *a2);
 
69
struct CBData *colorband_element_add(struct ColorBand *coba, float position);
 
70
int colorband_element_remove(struct ColorBand *coba, int index);
57
71
 
58
72
void default_tex(struct Tex *tex);
59
 
struct Tex *add_texture(char *name);
 
73
struct Tex *add_texture(const char *name);
 
74
void tex_set_type(struct Tex *tex, int type);
60
75
void default_mtex(struct MTex *mtex);
61
76
struct MTex *add_mtex(void);
 
77
struct MTex *add_mtex_id(struct ID *id, int slot);
62
78
struct Tex *copy_texture(struct Tex *tex);
63
79
void make_local_texture(struct Tex *tex);
64
80
void autotexname(struct Tex *tex);
65
 
struct Tex *give_current_texture(struct Object *ob, int act);
66
 
struct Tex *give_current_world_texture(void);
 
81
 
 
82
struct Tex *give_current_object_texture(struct Object *ob);
 
83
struct Tex *give_current_material_texture(struct Material *ma);
 
84
struct Tex *give_current_lamp_texture(struct Lamp *la);
 
85
struct Tex *give_current_world_texture(struct World *world);
 
86
struct Tex *give_current_brush_texture(struct Brush *br);
 
87
 
 
88
struct bNode *give_current_material_texture_node(struct Material *ma);
 
89
 
 
90
int                      give_active_mtex(struct ID *id, struct MTex ***mtex_ar, short *act);
 
91
void             set_active_mtex(struct ID *id, short act);
 
92
 
 
93
void set_current_brush_texture(struct Brush *br, struct Tex *tex);
 
94
void set_current_world_texture(struct World *wo, struct Tex *tex);
 
95
void set_current_material_texture(struct Material *ma, struct Tex *tex);
 
96
void set_current_lamp_texture(struct Lamp *la, struct Tex *tex);
67
97
 
68
98
struct TexMapping *add_mapping(void);
69
99
void init_mapping(struct TexMapping *texmap);
74
104
struct EnvMap *BKE_add_envmap(void);
75
105
struct EnvMap *BKE_copy_envmap(struct EnvMap *env);
76
106
 
 
107
void    BKE_free_pointdensitydata(struct PointDensity *pd);
 
108
void    BKE_free_pointdensity(struct PointDensity *pd);
 
109
struct PointDensity *BKE_add_pointdensity(void);
 
110
struct PointDensity *BKE_copy_pointdensity(struct PointDensity *pd);
 
111
 
 
112
void BKE_free_voxeldatadata(struct VoxelData *vd);
 
113
void BKE_free_voxeldata(struct VoxelData *vd);
 
114
struct VoxelData *BKE_add_voxeldata(void);
 
115
struct VoxelData *BKE_copy_voxeldata(struct VoxelData *vd);
 
116
 
77
117
int     BKE_texture_dependsOnTime(const struct Tex *texture);
78
118
 
 
119
#ifdef __cplusplus
 
120
}
 
121
#endif
 
122
 
79
123
#endif
80
124