I was doing a little book research on Sprites in DirectX when I came across Kevin Harris' CodeSampler.com website. He has a TON of samples in C++ there, the DirectX 9 samples being located here. On that page, you will find a sample titled "Creating 2D Sprites with D3DXSprite" It's one of those simple DX samples that gets right to the point, but still gives you something "meaty" to tinker with (as are most of his samples). Anyway, the challenge is that none of his samples use Managed DirectX. I took a few hours last night (plus 30 minutes today to have Tom Miller correct my errors ) to rewrite the app in Managed DirectX and C#. You can get the code here (csd3dxsprite.zip (44.07 KB) all set up for VS 2003). There's a few points to keep in mind:
Anyway...enjoy!
Remember Me
Theme design by Jelle Druyts
Pick a theme: BlogXP calmBlue Candid Blue dasBlog Discreet Blog Blue Elegante essence Just Html Mono Movable Radio Blue Movable Radio Heat orangeCream Portal Project84 Slate Sound Waves Tricoleur
Powered by: newtelligence dasBlog 1.8.5223.2
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, David Weller
E-mail