Archived

This topic is now archived and is closed to further replies.

Simple 2d implementation into DirectX

This topic is 5532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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 ]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites