Index: engine/materials/material.cpp =================================================================== RCS file: /cvs/tse/tse/engine/materials/material.cpp,v retrieving revision 1.10 diff -u -r1.10 material.cpp --- engine/materials/material.cpp 2005/07/20 23:50:09 1.10 +++ engine/materials/material.cpp 2005/08/10 02:56:12 @@ -147,6 +147,37 @@ addField("planarReflection", TypeBool, Offset(planarReflection, Material)); addField("mapTo", TypeString, Offset(mapTo, Material)); + // Material flags + Con::setIntVariable("$TexType::Standard", Material::TexType::Standard); + Con::setIntVariable("$TexType::Detail", Material::TexType::Detail); + Con::setIntVariable("$TexType::Bump", Material::TexType::Bump); + Con::setIntVariable("$TexType::Env", Material::TexType::Env); + Con::setIntVariable("$TexType::Cube", Material::TexType::Cube); + Con::setIntVariable("$TexType::SGCube", Material::TexType::SGCube); + Con::setIntVariable("$TexType::Lightmap", Material::TexType::Lightmap); + Con::setIntVariable("$TexType::NormLightmap", Material::TexType::NormLightmap); + Con::setIntVariable("$TexType::Mask", Material::TexType::Mask); + Con::setIntVariable("$TexType::Fog", Material::TexType::Fog); + Con::setIntVariable("$TexType::BackBuff", Material::TexType::BackBuff); + Con::setIntVariable("$TexType::Misc", Material::TexType::Misc); + + Con::setIntVariable("$BlendOp::None", Material::BlendOp::None); + Con::setIntVariable("$BlendOp::Mul", Material::BlendOp::Mul); + Con::setIntVariable("$BlendOp::Add", Material::BlendOp::Add); + Con::setIntVariable("$BlendOp::AddAlpha", Material::BlendOp::AddAlpha); + Con::setIntVariable("$BlendOp::Sub", Material::BlendOp::Sub); + Con::setIntVariable("$BlendOp::LerpAlpha", Material::BlendOp::LerpAlpha); + + Con::setIntVariable("$AnimType::Scroll", Material::AnimType::Scroll); + Con::setIntVariable("$AnimType::Rotate", Material::AnimType::Rotate); + Con::setIntVariable("$AnimType::Wave", Material::AnimType::Wave); + Con::setIntVariable("$AnimType::Scale", Material::AnimType::Scale); + Con::setIntVariable("$AnimType::Sequence", Material::AnimType::Sequence); + + Con::setIntVariable("$WaveType::Sin", Material::WaveType::Sin); + Con::setIntVariable("$WaveType::Triangle", Material::WaveType::Triangle); + Con::setIntVariable("$WaveType::Square", Material::WaveType::Square); + } //--------------------------------------------------------------------------