• Advertisement

Archived

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

easy loading bitmaps help

This topic is 6355 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

Im reading a tutorial about loading bitmaps into your memory to blit to a surface the function prototype is like this IDirectDrawSurface *DDLoadBitmap(IDirectDraw *pdd,LPCSTR szBitmap); Is *pdd just the name of the bitmap? and what is szBitMap?? if you want to see the tutorial Im looking at its at www.gamdev.net/reference/articles/article608.asp also when Im putting in the name of the bitmap do I just put the name like bitmap.bmp or "bitmap.bmp" ??? please help

Share this post


Link to post
Share on other sites
Advertisement
pdd is your DirectDraw object (lpDD or whatever you call it) szBitMap is the name of the bitmap you''re loading, you would call it like this:

LPDIRECTDRAW7 lpDD; // a DirectDraw 7 object
LPDIRECTDRAWSURFACE7 lpDDSbitmap; // A DirectX 7 surface
lpDDSbitmap=DDLoadBitmap(lpDD, "bitmap.bmp");
// do whatever


I hope that helps


----------------------------------------

I'm fat, you're ugly. I can lose weight.

------------------------------------

"We are the music makers, and the dreamers of the dreams."
- Willy Wonka

Share this post


Link to post
Share on other sites

  • Advertisement