Code: Select all
//! Gets specifig material flag. Helpful if you want to know if an object is lit.
//! \param flag: Which flag to return.
bool getMaterialFlag(video::E_MATERIAL_FLAG flag)
{
return getMaterial(0).Flags[flag];
}
Finally, enjoy a simplified way of retrieving a material flag.
I am thinking I could have just done this though:
node->getMaterial(0).Flag[video::EMF_LIGHTING]
Oh well, this was fun!
~ John DiSanti
________
HONDA CBF500