Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DirectX 9 Modify this chapters DirectX Window example program so a new random window color will be displayed each time the space bar is pressed.

DirectX 9

Modify this chapters "DirectX Window" example program so a new random window color will be displayed each time the space bar is pressed.

Hints: Add a backColor variable of type COLOR_ARGB to the Graphics Class. Modify the showBackBuffer functionin the Graphics class to use the backColor variable when clearing the screen. Add the following function to the graphics.h file:

//Set color used to clear sreen

void setBackColor(COLOR_ARGB c) {backColor = c;}

I have the COLOR_ARGB backColor variable and the setBackColor function.

That's where I'm stuck.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

Students also viewed these Databases questions

Question

3. Is it a topic that your audience will find worthwhile?

Answered: 1 week ago

Question

2. Does the topic meet the criteria specified in the assignment?

Answered: 1 week ago