Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SDL_Color inToCol (uint32_t& in)
- {
- SDL_Color out;
- out.r = (in >> 24) & 0xFF;
- out.g = (in >> 16) & 0xFF;
- out.b = (in >> 8) & 0xFF;
- out.a = in & 0xFF;
- return out;
- }
- bool Client::init()
- {
- uint32_t b = 0xd7003dff;
- SDL_Color a = inToCol(b);
- std::cout<<(int)a.r<<" "<<(int)a.g<<" "<<(int)a.b<<" "<<(int)a.a<<std::endl;
- (...)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement