Direct3D (DirectX 8.1) Code Samples - Page 1

Initialization 
 

Demonstrates how to initialize Direct3D. This sample is by far the simplest of all Direct3D samples on this page. If you know nothing about Direct3D, you probably need to start here. Check out the OpenGL source code page for the OpenGL equivalent of this sample.

 

Full-Screen Initialization 
 

This sample demonstrates how to probe the hardware for specific Display or Adaptor Modes and hardware support suitable for a full-screen application with Direct3D. Check out the OpenGL source code page for the OpenGL equivalent of this sample.

 

Vertex Data (Vertex Buffers)
 

Demonstrates how to use Vertex Buffers for the storage of model data. The sample creates a textured cube as an example. Check out the OpenGL source code page for a Vertex Array sample which is OpenGL's equivalent of Direct3D's Vertex Buffers.

 

Texture Mapping
 

Demonstrates basic texture mapping using a textured quad and a bitmap of some wooden floor tiles. Check out the OpenGL source code page for the OpenGL equivalent of this sample.

 

Texture Filtering
 

Demonstrates how to filter out unwanted graphical artifacts from Direct3D textures. Check out the OpenGL source code page for the OpenGL equivalent of this sample.