Ok, so I'm trying to learn how to make ANYTHING in Direct X. I came across a bit of code, demonstrating how to do colors. Here it is
Code:
struct SColor
{
int r;
int g;
int b;
};
SColor make_rgb( int r, int g, int b )
{
SColor ret;
ret.r = r;
ret.g = g;
ret.b = b;
return ret;
}
I don't know how structs work, so can someone please explain that, and can someone explain how this would work. Are these Functions? Sorry, I'm just a really enthusiastic beginner programmer, wanting to make a colorful circle or somthing.