Hi Guys,
Have a small problem.
How can I get four values out of a 32 bit variable into four seperate bytes (or u8 vars)
like this:
32bitvar = 11223344;
do something here
u8a = 11;
u8b = 22;
u8c = 33;
u8d = 44;
assistance would help me out of a jam!
I'm essentially trying to split a 32bit pixel value into seperate alpha, red, green & blue values.
Have a small problem.
How can I get four values out of a 32 bit variable into four seperate bytes (or u8 vars)
like this:
32bitvar = 11223344;
do something here
u8a = 11;
u8b = 22;
u8c = 33;
u8d = 44;
assistance would help me out of a jam!
I'm essentially trying to split a 32bit pixel value into seperate alpha, red, green & blue values.