Simple 2d implementation into DirectX

Started by
4 comments, last by Parnic 21 years, 6 months ago
Hi, this is going to sound really dumb, but I''d simply like some help on sprites. Basically, I know how to control the directx window, how to do the tutorials and whatnot, but it''s been very hard for me to find a simple way of taking a bitmap....and sticking it on the screen...then moving it around in the future, of course. So, basically I feel like I''m pretty good and your basic stupid console programming and I know what I COULD do with bitmaps once I was taught to use them properly. So...all that to say, can someone help explain (more in detail than the tutorials which just skip over it) how to load and display a bitmap or other image format in the directx window? I would be very appreciative. Thanks!
Advertisement
Moved to DirectX forum.
What version of DirectX are you using?
I''m using DX 8.1 with windows XP.
You can download my DX 8.1 class from the DevZone. That has everything you need to load and display graphics. If you include D3DUtil.cpp and .h you get access to helper functions which will load bitmaps.

The best way to learn is to look at the source for the examples included with the SDK that do what you''re trying to do.

My class is just built out of the SDK examples and modified quite a bit to cut down the excess and add a few features I needed.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Tiberian Merchandise!!!! | GameShot ]
DirectX Documentation -> DirectX Graphics -> Reference -> Direct3DX C/C++ Reference -> Interfaces -> ID3DXSprite

You could do it that way or:

http://www.flipcode.com/tutorials/tut_dx82d.shtml
http://www.flipcode.com/tutorials/tut_dx8adv2d.shtml
http://www.gamasutra.com/features/20010629/geczy_01.htm
"Everything has a reason."

This topic is closed to new replies.

Advertisement