Platform SDK: DirectX

DDBlend Sample

[C++]

This topic pertains only to application development in Visual Basic. See DirectDraw C/C++ Samples.

[Visual Basic]

Description

The DDBlend sample demonstrates full-screen DirectDraw support, direct surface manipulation and 8-bit palette scrolling.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Src\DDBlend

Executable: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Bin\DDBlend.exe

User's Guide

Change the point of origin of the swirling colors by moving the mouse. Cycle forward through the screen resolutions by pressing INSERT or backward by pressing DELETE. Increase the number of particles by pressing HOME, or remove particles by pressing END. Increase the amount of blur by pressing PAGE UP or decrease it with PAGE DOWN. Use the spacebar to switch palettes.

Programming Notes

DDBlend is a full-screen sample, showing off the ability of DirectX to access surface memory directly. It also demonstrates 8-bit palette scrolling as well as on-the-fly video mode switching.