Original Post
Ok, this is probably very simple but I have tried finding info and downloaded som program that should help, but I still cannot get it right.
The problem is that I need to create background colors but I do not get the hex codes, using C++ and direct X.
For example, I have a function:
void paintCircle(int radii, unsigned int color)
{
//do the painting
}
To call this function and get a red circle what should the argument of color be? What should the data type be?
Is there an easy way to calculate this?
If anyone knows a good article about it, I''d appreciate a URL.
Thanks!