(I have just answered this question after searching for a while, so I am asking and answering this question here for it to be here when it’s needed. There are similar, but not quite the same, questions.)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Cast it to
int. This can be consumed by astringstreamor otherwise converted forstringuse.Where
colourwas astruct SDL_ColorcontainingUint8(a defined alias foruint8_t) members, the solution was