
Table of Contents
Introduction ix
1. Getting Started 1
1.1 Overview 1
1.2 e Development Environment 2
1.3 What Is DirectX? 2
1.4 Why C++? 2
1.5 Naming Conventions 9
1.6 Game Engine 10
1.7 Tips and Tools 10
Chapter Review 11
Review Questions 12
Exercises 12
2. Windows Programming Fundamentals 13
2.1 Windows Programming Fundamentals 13
2.2 “Hello World” Windows Style 13
2.3 Device Context 26
2.4 Keyboard Input with Windows API 27
2.5 Using a Mutex to Prevent Multiple Instances 34
2.6 Multitasking in Windows 35
Chapter Review 35
Review Questions 36
Exercises 37
Examples 37