DirectX SDK |
This topic pertains only to application development in Visual Basic. See DirectDraw C/C++ Samples.
The DDBlend sample demonstrates full-screen DirectDraw support, direct surface manipulation and 8-bit palette scrolling.
Source: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Src\DDBlend
Executable: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Bin\DDBlend.exe
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.
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.