bool ColorMaskChunk::operator == (const StateChunk &other) const { ColorMaskChunk const *tother = dynamic_cast<ColorMaskChunk const*>(&other); if(!tother) return false; if(tother == this) return true; if(getMaskR() != tother->getMaskR() || getMaskG() != tother->getMaskG() || getMaskB() != tother->getMaskB() || getMaskA() != tother->getMaskA() ) { return false; } return true; }
void ColorMaskChunk::activate(DrawEnv *pEnv, UInt32) { pEnv->incNumChunkChanges(); glColorMask(getMaskR(), getMaskG(), getMaskB(), getMaskA()); }
void ColorMaskChunk::activate(DrawEnv *, UInt32) { glColorMask(getMaskR(), getMaskG(), getMaskB(), getMaskA()); }