In the typical fashion, a "flag" is represented as a bit-mask. Flags are generally used to indicate either states (mutex lock state, invalid state, etcetera), or parameters (use alpha channel, disable anti-aliasing, etcetera). Here's an example of each: