|
|
|
@@ -77,10 +77,18 @@ public: |
|
|
|
forcedinline uint8 getGreen() const noexcept { return components.g; }
|
|
|
|
forcedinline uint8 getBlue() const noexcept { return components.b; }
|
|
|
|
|
|
|
|
#if JUCE_GCC && ! JUCE_CLANG
|
|
|
|
// NB these are here as a workaround because GCC refuses to bind to packed values.
|
|
|
|
forcedinline uint8& getAlpha() noexcept { return comps [indexA]; }
|
|
|
|
forcedinline uint8& getRed() noexcept { return comps [indexR]; }
|
|
|
|
forcedinline uint8& getGreen() noexcept { return comps [indexG]; }
|
|
|
|
forcedinline uint8& getBlue() noexcept { return comps [indexB]; }
|
|
|
|
#else
|
|
|
|
forcedinline uint8& getAlpha() noexcept { return components.a; }
|
|
|
|
forcedinline uint8& getRed() noexcept { return components.r; }
|
|
|
|
forcedinline uint8& getGreen() noexcept { return components.g; }
|
|
|
|
forcedinline uint8& getBlue() noexcept { return components.b; }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Blends another pixel onto this one.
|
|
|
|
|
|
|
|
@@ -279,6 +287,9 @@ private: |
|
|
|
{
|
|
|
|
uint32 argb;
|
|
|
|
Components components;
|
|
|
|
#if JUCE_GCC
|
|
|
|
uint8 comps[4];
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
|