1 //----------------------------------------------------------------------------
2 // Anti-Grain Geometry - Version 2.3
3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // Permission to copy, use, modify, sell and distribute this software
6 // is granted provided this copyright notice appears in all copies.
7 // This software is provided "as is" without express or implied
8 // warranty, and with no claim as to its suitability for any purpose.
10 //----------------------------------------------------------------------------
11 // Contact: mcseem@antigrain.com
12 // mcseemagg@yahoo.com
13 // http://www.antigrain.com
14 //----------------------------------------------------------------------------
16 #ifndef AGG_BITSET_ITERATOR_INCLUDED
17 #define AGG_BITSET_ITERATOR_INCLUDED
19 #include "agg_basics.h"
27 bitset_iterator(const int8u
* bits
, unsigned offset
= 0) :
28 m_bits(bits
+ (offset
>> 3)),
29 m_mask(0x80 >> (offset
& 7))
44 return (*m_bits
) & m_mask
;