Platform SDK: DirectX |
This topic pertains only to application development in C and C++. See DirectDraw Visual Basic Samples.
DDEx1 demonstrates the tasks required to initialize and run a DirectDraw application.
Source: (SDK root)\Samples\Multimedia\DDraw\Src\Ddex1
Executable: (SDK root)\Samples\Multimedia\DDraw\Bin\Ddex1.exe
DDEx1 requires no user input. Press the F12 key or the ESC key to quit the program.
This program shows how to initialize DirectDraw and create a DirectDraw surface. It creates a back buffer and uses page flipping to alternately display the contents of the front and back buffers. Other techniques demonstrated include color fills and using GDI functions on a DirectDraw surface.