|
SuperDex Physics C++ API
|
Go to the source code of this file.
Namespaces | |
| namespace | superdex |
| namespace | superdex::colors |
| Predefined color constants for common use cases. | |
Typedefs | |
| using | superdex::Color = NdArray<uint8_t, 4> |
| RGBA color representation using 4 bytes (0-255 per channel) in RGBA order. | |
Functions | |
| constexpr Color | superdex::MakeColor (uint32_t rgba) |
| Creates a Color from a packed 32-bit RGBA value. | |
| constexpr Color | superdex::MakeColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
| Creates a Color from 4 unsigned bytes in RGBA order. | |
| constexpr Float3 | superdex::ToFloat3 (Color const &color) |
| Converts a Color to a normalized Float3 vector (RGB only). | |
| constexpr Float4 | superdex::ToFloat4 (Color const &color) |
| Converts a Color to a normalized Float4 vector (RGBA). | |
Variables | |
| static constexpr Color | superdex::colors::kBlack = MakeColor(0x000000FF) |
| Pure black color. | |
| static constexpr Color | superdex::colors::kBlue = MakeColor(0x0000FFFF) |
| Pure blue color. | |
| static constexpr Color | superdex::colors::kCyan = MakeColor(0x00FFFFFF) |
| Cyan color (green + blue). | |
| static constexpr Color | superdex::colors::kGray = MakeColor(0x808080FF) |
| Medium gray color (US spelling). | |
| static constexpr Color | superdex::colors::kGreen = MakeColor(0x00FF00FF) |
| Pure green color. | |
| static constexpr Color | superdex::colors::kGrey = MakeColor(0x808080FF) |
| Medium gray color (UK spelling). | |
| static constexpr Color | superdex::colors::kMagenta = MakeColor(0xFF00FFFF) |
| Magenta color (red + blue). | |
| static constexpr Color | superdex::colors::kMaroon = MakeColor(0x800000FF) |
| Dark red color. | |
| static constexpr Color | superdex::colors::kNavy = MakeColor(0x000080FF) |
| Dark blue color. | |
| static constexpr Color | superdex::colors::kOlive = MakeColor(0x808000FF) |
| Dark yellow-green color. | |
| static constexpr Color | superdex::colors::kOrange = MakeColor(0xFFA500FF) |
| Orange color. | |
| static constexpr Color | superdex::colors::kPurple = MakeColor(0x800080FF) |
| Dark magenta color. | |
| static constexpr Color | superdex::colors::kRed = MakeColor(0xFF0000FF) |
| Pure red color. | |
| static constexpr Color | superdex::colors::kSilver = MakeColor(0xC0C0C0FF) |
| Light gray color. | |
| static constexpr Color | superdex::colors::kTeal = MakeColor(0x008080FF) |
| Dark cyan color. | |
| static constexpr Color | superdex::colors::kWhite = MakeColor(0xFFFFFFFF) |
| Pure white color. | |
| static constexpr Color | superdex::colors::kYellow = MakeColor(0xFFFF00FF) |
| Yellow color (red + green). | |