Update renderd7.hpp

This commit is contained in:
tobid7 2021-12-03 22:52:49 +01:00 committed by GitHub
parent d31f63a47e
commit abef666256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ namespace RenderD7
class RGBA{ class RGBA{
public: public:
RGBA(u8 r, u8 g, u8 b, u8 a) : m_r(r),m_g(g),m_b(b),m_a(a){} RGBA(u8 r, u8 g, u8 b, u8 a) : m_r(r),m_g(g),m_b(b),m_a(a){}
uint32_t Color::toRGBA() const {return (r << 24) | (g << 16) | (b << 8) | a;} u32 toRGBA() const {return (r << 24) | (g << 16) | (b << 8) | a;}
u8 m_r, m_g ,m_b, m_a; u8 m_r, m_g ,m_b, m_a;
}; };