Members Chapter Previous Next

## class CDXLayer : public CDXSurface

CDXLayer is derived from CDXSurface and is very similar in most respects. However, a CDXLayer has the added ability to smoothly scroll the surface in all directions. This effect is often seen in platform games where the background is a scrolling bitmap and the foreground a scrolling tile map, giving a good feeling of depth. A CDXLayer would also be perfect for a pinball game since DirectX places no restrictions on the height of bitmaps in video memory.

`#include "cdxlayer.h"`