MiniEngine/include/SDLWrapper/RGBA.h

19 lines
313 B
C++
Raw Normal View History

2017-06-18 17:03:57 +08:00
#pragma once
#include "include.h"
2017-06-18 20:37:45 +08:00
#include "ColorMode.h"
2018-03-04 15:10:49 +08:00
namespace MiniEngine {
2017-06-18 17:03:57 +08:00
class RGBA
{
public:
int r, g, b, a;
RGBA(int R, int G, int B, int A);
RGBA(ColorMode mode, int A);
RGBA();
SDL_Color toSDLColor() const;
ColorMode toColorMode() const;
};
2018-03-04 15:10:49 +08:00
} /// End of namespace MiniEngine