Platform SDK: DirectX

DDEx5 Sample

[Visual Basic]

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

[C++]

Description

The DDEx5 program is an extension of DDEx4. It demonstrates a simple palette manipulation.

Path

Source: (SDK root)\Samples\Multimedia\DDraw\Src\Ddex5

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

User's Guide

DDEx4 requires no user input. Press F12 or ESC to quit the program.

This program requires at least 1.2 MB of video RAM.

Programming Notes

The program uses IDirectDrawPalette::GetEntries to read a palette, modifies the entries, and then uses IDirectDrawPalette::SetEntries to update the palette.