SHARE
TWEET

Untitled

a guest Jun 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SDL_Color inToCol (uint32_t& in)
  2. {
  3.     SDL_Color out;
  4.  
  5.     out.r = (in >> 24) & 0xFF;
  6.     out.g = (in >> 16) & 0xFF;
  7.     out.b = (in >> 8) & 0xFF;
  8.     out.a = in & 0xFF;
  9.  
  10.     return out;
  11. }
  12.  
  13. bool Client::init()
  14. {
  15.     uint32_t b = 0xd7003dff;
  16.  
  17.     SDL_Color a = inToCol(b);
  18.  
  19.     std::cout<<(int)a.r<<" "<<(int)a.g<<" "<<(int)a.b<<" "<<(int)a.a<<std::endl;
  20.  
  21. (...)
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top