Ex.
I have a function that changes the pixel data (Red,Green,Blue) that has no parameters and uses a global struct, glob. I would access glob.data to read the Red,Green,Blue pixels.
What is the difference be if I were to include a parameter which would be a glob*, I could access the data from the pointer.
Is this better practice then using the global from any function?
This implementation would be better than calling the 'glob.width = 2' etc
RevolverFilter(&global, &temp);
void RevolverFilter(glob* org,glob* temp1){
for x: for y: tRed = org->data[x+y*w].r;
...
}