Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CS_MATERIALBUILDER_H__
00020 #define __CS_MATERIALBUILDER_H__
00021
00026 #include "csextern.h"
00027
00028 struct iMaterialWrapper;
00029 struct iTextureHandle;
00030 struct iObjectRegistry;
00031 class csVector4;
00032 class csColor;
00033
00034 namespace CS
00035 {
00036 namespace Material
00037 {
00038
00042 class CS_CRYSTALSPACE_EXPORT MaterialBuilder
00043 {
00044 public:
00049 static void SetupParallaxMaterial (iObjectRegistry* object_reg,
00050 iMaterialWrapper* material,
00051 iTextureHandle* normalmap, iTextureHandle* heightmap,
00052 const csVector4& specular);
00053
00061 static iMaterialWrapper* CreateParallaxMaterial (iObjectRegistry* object_reg,
00062 const char* matname, const char* matfile, const char* normalfile,
00063 const char* heightfile, const csVector4& specular);
00064
00071 static iMaterialWrapper* CreateColorMaterial(iObjectRegistry* object_reg,
00072 const char* matname, csColor color);
00073
00074 };
00075 }
00076 }
00077
00080 #endif // __CS_MATERIALBUILDER_H__
00081