| GrayDBufGetActiveIdx | Function (Macro)

gray.h

short GrayDBufGetActiveIdx (void);

Returns the index of the currently visible double buffer.

GrayDBufGetActiveIdx returns the index of the visible double buffer. This index will be either 0 or 1, and can be passed to GrayDBufSetActiveIdx or GrayDBufGetPlane. Usually, you do not need to call this function directly.

See also: GrayDBufGetHiddenIdx, GrayDBufSetActiveIdx, GrayDBufGetActivePlane, GrayDBufSetActiveAMSPlane