~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/BL_Material.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/** \file BL_Material.h
 
3
 *  \ingroup ketsji
 
4
 */
 
5
 
1
6
#ifndef __BL_MATERIAL_H__
2
7
#define __BL_MATERIAL_H__
3
8
 
4
9
#include "STR_String.h"
5
10
#include "MT_Point2.h"
 
11
#include "DNA_meshdata_types.h"
6
12
 
7
13
#ifdef WITH_CXX_GUARDEDALLOC
8
14
#include "MEM_guardedalloc.h"
19
25
// --
20
26
 
21
27
/** max units
22
 
        this will default to users available units
23
 
        to build with more available, just increment this value
24
 
        although the more you add the slower the search time will be.
25
 
        we will go for eight, which should be enough
26
 
*/
 
28
 * this will default to users available units
 
29
 * to build with more available, just increment this value
 
30
 * although the more you add the slower the search time will be.
 
31
 * we will go for eight, which should be enough
 
32
 */
27
33
#define MAXTEX                  8       //match in RAS_TexVert & RAS_OpenGLRasterizer
28
34
 
29
35
// different mapping modes
63
69
 
64
70
        float matcolor[4];
65
71
        float speccolor[3];
66
 
        short transp, pad;
 
72
        short alphablend, pad;
67
73
 
68
74
        float hard, spec_f;
69
75
        float alpha, emit, color_blend[MAXTEX], ref;
71
77
 
72
78
        int blend_mode[MAXTEX];
73
79
 
74
 
        int      mode;
75
80
        int num_enabled;
76
81
        
77
82
        BL_Mapping      mapping[MAXTEX];
79
84
 
80
85
 
81
86
        Material*                       material;
82
 
        MTFace*                         tface;
 
87
        MTFace                          tface; /* copy of the derived meshes tface */
83
88
        Image*                          img[MAXTEX];
84
89
        EnvMap*                         cubemap[MAXTEX];
85
90
 
139
144
        USEALPHA=4,             // use actual alpha channel
140
145
        TEXALPHA=8,             // use alpha combiner functions
141
146
        TEXNEG=16,              // negate blending
142
 
        HASIPO=32,
 
147
        /*HASIPO=32,*/  // unused, commeted for now.
143
148
        USENEGALPHA=64
144
149
};
145
150
 
146
151
// BL_Material::ras_mode
147
152
enum BL_ras_mode
148
153
{
149
 
        POLY_VIS=1,
 
154
        // POLY_VIS=1,
150
155
        COLLIDER=2,
151
156
        ZSORT=4,
152
157
        ALPHA=8,
153
158
        // TRIANGLE=16,
154
159
        USE_LIGHT=32,
155
 
        WIRE=64
 
160
        WIRE=64,
 
161
        CAST_SHADOW=128,
 
162
        TEX=256,
 
163
        TWOSIDED=512
156
164
};
157
165
 
158
166
// -------------------------------------