Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::IMG_ADDRESS Macro
C++
#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 
Image to get the color buffer address of 
x coordinate of pixel to get address of 
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.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!