summaryrefslogtreecommitdiff
path: root/include/m/m_color.h
blob: 0e71775b0b480933e276558a88cf8c89ca575808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef M_COLOR_H
#define M_COLOR_H

#include "nw4r/ut/ut_Color.h"

struct mColor : public nw4r::ut::Color {
    mColor() : nw4r::ut::Color() {}
    mColor(int red, int green, int blue, int alpha) : nw4r::ut::Color(red, green, blue, alpha) {}
    mColor(int hex) : nw4r::ut::Color(hex) {}

    void operator=(GXColor& color) {
        r = color.r;
        g = color.g;
        b = color.b;
        a = color.a;
    }
};

#endif