This is a sample chapter from Managed DirectX 9 Kick Start : Graphics and Game Programming. I bought the book and I really like it! Thanks to Tom Miller for this amazing book.