OLD | NEW |
1 | 1 |
2 /** \file BL_Material.h | 2 /** \file BL_Material.h |
3 * \ingroup ketsji | 3 * \ingroup ketsji |
4 */ | 4 */ |
5 | 5 |
6 #ifndef __BL_MATERIAL_H__ | 6 #ifndef __BL_MATERIAL_H__ |
7 #define __BL_MATERIAL_H__ | 7 #define __BL_MATERIAL_H__ |
8 | 8 |
9 #include "STR_String.h" | 9 #include "STR_String.h" |
10 #include "MT_Point2.h" | 10 #include "MT_Point2.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 BL_Mapping mapping[MAXTEX]; | 82 BL_Mapping mapping[MAXTEX]; |
83 STR_String imageId[MAXTEX]; | 83 STR_String imageId[MAXTEX]; |
84 | 84 |
85 | 85 |
86 Material* material; | 86 Material* material; |
87 MTFace* tface; | 87 MTFace* tface; |
88 Image* img[MAXTEX]; | 88 Image* img[MAXTEX]; |
89 EnvMap* cubemap[MAXTEX]; | 89 EnvMap* cubemap[MAXTEX]; |
90 | 90 |
91 unsigned int rgb[4]; | 91 unsigned int rgb[4]; |
92 » MT_Point2 uv[4]; | 92 » MT_Point2 uvs[4][MAXTEX]; |
93 » MT_Point2 uv2[4]; | |
94 | |
95 » STR_String uvName; | |
96 » STR_String uv2Name; | |
97 | 93 |
98 void SetConversionRGB(unsigned int *rgb); | 94 void SetConversionRGB(unsigned int *rgb); |
99 void GetConversionRGB(unsigned int *rgb); | 95 void GetConversionRGB(unsigned int *rgb); |
100 | 96 |
101 » void SetConversionUV(const STR_String& name, MT_Point2 *uv); | 97 » void SetConversionUV(const MT_Point2 uv[4][MAXTEX]); |
102 » void GetConversionUV(MT_Point2 *uv); | 98 » void GetConversionUV(MT_Point2 uv[4][MAXTEX]); |
103 | |
104 » void SetConversionUV2(const STR_String& name, MT_Point2 *uv); | |
105 » void GetConversionUV2(MT_Point2 *uv); | |
106 | 99 |
107 void SetSharedMaterial(bool v); | 100 void SetSharedMaterial(bool v); |
108 bool IsShared(); | 101 bool IsShared(); |
109 void SetUsers(int num); | 102 void SetUsers(int num); |
110 ········ | 103 ········ |
111 ········ | 104 ········ |
112 #ifdef WITH_CXX_GUARDEDALLOC | 105 #ifdef WITH_CXX_GUARDEDALLOC |
113 public: | 106 public: |
114 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:BL_Material"); } | 107 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:BL_Material"); } |
115 void operator delete( void *mem ) { MEM_freeN(mem); } | 108 void operator delete( void *mem ) { MEM_freeN(mem); } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 181 |
189 // ------------------------------------ | 182 // ------------------------------------ |
190 //extern void initBL_Material(BL_Material* mat); | 183 //extern void initBL_Material(BL_Material* mat); |
191 extern MTex* getImageFromMaterial(Material *mat, int index); | 184 extern MTex* getImageFromMaterial(Material *mat, int index); |
192 extern int getNumTexChannels( Material *mat ); | 185 extern int getNumTexChannels( Material *mat ); |
193 // ------------------------------------ | 186 // ------------------------------------ |
194 | 187 |
195 #endif | 188 #endif |
196 | 189 |
197 | 190 |
OLD | NEW |