Platform SDK: DirectX |
This topic pertains only to application development in Visual Basic. See DirectDraw C/C++ Samples.
The Fire sample demonstrates how to manipulate the video memory directly by using DirectDraw.
Source: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Src\Fire
Executable: (SDK root)\Samples\Multimedia\VBSamples\DDraw\Bin\Fire.exe
No input is required. Press ESC to quit the program.
The sample uses DirectDrawSurface7.GetLockedArray to get the display memory into an array of bytes, Pict, where they can be manipulated individually.