Home > Articles > Programming > Visual Basic

Creating a Screen Saver with DirectX 8 and VB, Part 1: Setup

  • Print
  • + Share This
Keith Sink shows how to use DirectX and Visual Basic to create screen savers.
Keith Sink is the author of DirectX 8 and Visual Basic Development (Sams, 2001, ISBN 0-672-32225-0).
From the author of

Introduction

Since the early days of Visual Basic, many of us have wanted to create screen savers. However, due to the limitations of the Windows graphics libraries, we have been limited in what we can produce. Now that DirectX has become an integral part of Windows, and VB is supported in almost all functions of DirectX, we can bring these screen savers to the next level. This article shows you how to use DirectX 8 and Visual Basic to create a screen saver (see Figure 1). In the process, you'll learn how screen savers work and how to do an animation loop in DirectX 8.

Figure 1 The Snowman screen saver.

System Requirements

You must have:

  • Visual Basic 6

  • The DirectX 8 (or 8.1) SDK

  • A recent video card

Source code can be found here.

  • + Share This
  • 🔖 Save To Your Account