Monday, June 27, 2005

Setting Flags

I've been curious about how to flags with bitwise operators and all that for ages but I've never really looked into it.
(Or ever thought up the proper search terms - I guess bitwise operators would have been a good one oh well).

Basically it's how to write setup code. I'd seen it in Windows and in DirectX

windowStyle = NoBorder | ReallyShiny | SlightlyBlue

I always thought that would be quite useful. Anyway here's a nice little article on how to use them.

Currently I messing with Time and have decided that the singleton I originally made was the wrong way to go :D There's still some static stuff in the new class but it's not as singleton heavy as before.

No comments: