#define IMG_ADDRESS(i,x,y) ((CDATA*) \ ((i)->image + (( (x) - (i)->eff_x ) \ +(((i)->flags&IF_FLAG_INVERTED)?(INVERTY_INVERTED( (i), (y) ) * (i)->pwidth ):(INVERTY_NON_INVERTED( (i), (y) ) * (i)->pwidth )) \ )) \ )
Parameters |
Description |
i |
Image to get the color buffer address of |
x |
x coordinate of pixel to get address of |
y |
y coordinate of pixel to get address of |
The address of the pixel in the color buffer.
A macro to compute the address of a pixel in the color buffer by x, y.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|