template class EE::System::tRGB

Overview

Template class for a RGB color. More…

#include <color.hpp>

template <typename T>
class tRGB {
public:
    // fields

    T r;
    T g;
    T b;

    // construction

    tRGB();
    tRGB(T r, T g, T b);
    tRGB(Uint32 Col);

    // methods

    bool operator==(const tRGB<T>& Col);
    bool operator!=(const tRGB<T>& Col);
};

Detailed Documentation

Template class for a RGB color.

Construction

tRGB(T r, T g, T b)

Creates an RGB color from each component.

Parameters:

r

Red component

g

Green component

b

Blue component

tRGB(Uint32 Col)

From 32 bits value with RGB(A) byte order