Beginner, trying to learn how to make an image.
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
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.
SColor make_rgb( int r, int g, int b )
ret.r = r;
ret.g = g;
ret.b = b;