|
Nebula
|
Go to the source code of this file.
Macros | |
| #define | N_BIT(x) |
| #define | N_ARGB(a, r, g, b) |
| #define | N_RGBA(r, g, b, a) |
| #define | N_XRGB(r, g, b) |
| #define | N_COLORVALUE(r, g, b, a) |
| #define | N_IP_ADDR(a, b, c, d) |
| #define | BITS_TO_BYTES(x) |
| #define | BYTES_TO_BITS(x) |
| #define | lengthof(x) |
| #define | NEBULA_ALIGN16 alignas(16) |
Typedefs | |
| typedef unsigned long | ulong |
| typedef unsigned int | uint |
| typedef unsigned short | ushort |
| typedef unsigned char | uchar |
| typedef unsigned char | ubyte |
| typedef uintptr_t | uintptr |
| typedef ptrdiff_t | ptrdiff |
| typedef int | IndexT |
| typedef int | SizeT |
| typedef int64_t | Index64T |
| typedef int64_t | Size64T |
| typedef uintptr | PtrT |
| typedef ptrdiff | PtrDiff |
Functions | |
| template<class MASK, class BITS> | |
| constexpr MASK | SetBits (const MASK mask, const BITS bit) |
| template<class MASK, class BITS> | |
| constexpr MASK | UnsetBits (const MASK mask, const BITS bit) |
| template<class FLAGS, class BITS> | |
| constexpr bool | AllBits (const FLAGS flags, const BITS bits) |
| Check if all bits are set in flags. | |
| template<class FLAGS, class BITS> | |
| constexpr bool | AnyBits (const FLAGS flags, const BITS bits) |
| Check if any bits are set in flags. | |
| template<class FLAGS, class BITS> | |
| constexpr bool | OnlyBits (const FLAGS flags, const BITS bits) |
Variables | |
| static const int | InvalidIndex = -1 |
| #define BITS_TO_BYTES | ( | x | ) |
| #define BYTES_TO_BITS | ( | x | ) |
| #define lengthof | ( | x | ) |
| #define N_ARGB | ( | a, | |
| r, | |||
| g, | |||
| b ) |
| #define N_BIT | ( | x | ) |
| #define N_COLORVALUE | ( | r, | |
| g, | |||
| b, | |||
| a ) |
| #define N_IP_ADDR | ( | a, | |
| b, | |||
| c, | |||
| d ) |
| #define N_RGBA | ( | r, | |
| g, | |||
| b, | |||
| a ) |
| #define N_XRGB | ( | r, | |
| g, | |||
| b ) |
| #define NEBULA_ALIGN16 alignas(16) |
| typedef int64_t Index64T |
| typedef int IndexT |
| typedef ptrdiff_t ptrdiff |
| typedef int64_t Size64T |
| typedef int SizeT |
| typedef unsigned char ubyte |
| typedef unsigned char uchar |
| typedef unsigned int uint |
| typedef uintptr_t uintptr |
| typedef unsigned long ulong |
| typedef unsigned short ushort |
|
constexpr |
Check if all bits are set in flags.
|
constexpr |
Check if any bits are set in flags.
|
constexpr |
|
constexpr |
|
constexpr |
|
static |