Yeah, I don't know what way to write the color.
drawLineScreen(ax, ay, bx, by, ??? );
So, for example, how do I draw a white line that's not transparent with this?
How do you write the color in drawLineScreen()?
I looked at graphics.h from luaplayer source and color is just an int like this: 0xAABBGGRR. There seem to be some macros available too, they work like this:
That will get you white, but I don't know if the alpha is meant to be 0x00 or 0xFF for opaque.
Code: Select all
Color color;
color = A(0x00) | B(0xFF) | G(0xFF) | R(0xFF);
drawLineScreen(x1, y1, x2, y2, color);
// or just
drawLineScreen(x1, y1, x2, y2, 0x00FFFFFF);
(+[__]%)