#include "memory/memory.h"
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
#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 | BITS_TO_BYTES(x) |
|
#define | BYTES_TO_BITS(x) |
|
#define | lengthof(x) |
|
#define | NEBULA_ALIGN16 alignas(16) |
|
|
constexpr uint64 | operator""_KB (const unsigned long long val) |
|
constexpr uint64 | operator""_MB (const unsigned long long val) |
|
constexpr uint64 | operator""_GB (const unsigned long long val) |
|
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) |
|
◆ BITS_TO_BYTES
#define BITS_TO_BYTES |
( |
| x | ) |
|
◆ BYTES_TO_BITS
#define BYTES_TO_BITS |
( |
| x | ) |
|
◆ lengthof
◆ N_ARGB
#define N_ARGB |
( |
| a, |
|
|
| r, |
|
|
| g, |
|
|
| b ) |
Value:((
uint)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
unsigned int uint
Definition types.h:31
◆ N_BIT
◆ N_COLORVALUE
#define N_COLORVALUE |
( |
| r, |
|
|
| g, |
|
|
| b, |
|
|
| a ) |
Value:
#define N_RGBA(r, g, b, a)
Definition types.h:105
◆ N_RGBA
#define N_RGBA |
( |
| r, |
|
|
| g, |
|
|
| b, |
|
|
| a ) |
Value:
#define N_ARGB(a, r, g, b)
Definition types.h:104
◆ N_XRGB
#define N_XRGB |
( |
| r, |
|
|
| g, |
|
|
| b ) |
◆ NEBULA_ALIGN16
#define NEBULA_ALIGN16 alignas(16) |
◆ Index64T
◆ IndexT
◆ int16
◆ int32
◆ int64
◆ int8
◆ PtrDiff
◆ ptrdiff
◆ PtrT
◆ Size64T
◆ SizeT
◆ ubyte
typedef unsigned char ubyte |
◆ uchar
typedef unsigned char uchar |
◆ uint
typedef unsigned int uint |
◆ uint16
◆ uint32
◆ uint64
◆ uint8
◆ uintptr
◆ ulong
typedef unsigned long ulong |
◆ ushort
◆ AllBits()
template<class FLAGS , class BITS >
bool AllBits |
( |
const FLAGS | flags, |
|
|
const BITS | bits ) |
|
constexpr |
Check if all bits are set in flags.
◆ AnyBits()
template<class FLAGS , class BITS >
bool AnyBits |
( |
const FLAGS | flags, |
|
|
const BITS | bits ) |
|
constexpr |
Check if any bits are set in flags.
◆ OnlyBits()
template<class FLAGS , class BITS >
bool OnlyBits |
( |
const FLAGS | flags, |
|
|
const BITS | bits ) |
|
constexpr |
◆ operator""_GB()
uint64 operator""_GB |
( |
const unsigned long long | val | ) |
|
|
constexpr |
◆ operator""_KB()
uint64 operator""_KB |
( |
const unsigned long long | val | ) |
|
|
constexpr |
◆ operator""_MB()
uint64 operator""_MB |
( |
const unsigned long long | val | ) |
|
|
constexpr |
◆ SetBits()
template<class MASK , class BITS >
MASK SetBits |
( |
const MASK | mask, |
|
|
const BITS | bit ) |
|
constexpr |
◆ UnsetBits()
template<class MASK , class BITS >
MASK UnsetBits |
( |
const MASK | mask, |
|
|
const BITS | bit ) |
|
constexpr |
◆ InvalidIndex
const int InvalidIndex = -1 |
|
static |