i found the following statement in code which I not completely understand:
UInt32 *pixels;
UInt32 *currentPixel = pixels;
UInt32 color = *currentPixel;
The first two lines are clear to me, as these are definitions of UInt32 objects, pixels, and currentPixel. But the line after does not make sense to me honestly. Why is it not:
UInt32 *color = currentPixel
but
UInt32 color = *currentPixel
What is the difference in that?
If I remove the * from currentPixel i get the message: Incompatible pointer to integer conversion initializing 'UInt32' (aka 'unsigned int') with an expression of type 'UInt32 *' (aka 'unsigned int *'); dereference with *
What does dereference with * mean?
Thank you