How to load a resource bitmap into a ddraw surface.
DDReLoadBitmap();
I know this function can load a bmp file into a surface. But how about from the bitmap resource. Any function or any way I can make it?
Thanks a lot.
Daniel
quote: Original post by dan59314
DDReLoadBitmap();
I know this function can load a bmp file into a surface. But how about from the bitmap resource. Any function or any way I can make it?
Thanks a lot.
Daniel
Use something like this
hBMP = (HBITMAP) LoadImage( GetModuleHandle(NULL), strBMP, IMAGE_BITMAP, dwDesiredWidth, dwDesiredHeight, LR_CREATEDIBSECTION );.....StretchBlt(...)
Similar code used in MS Samples that goes with DX8 SDK.
Sergey.
Sergey.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement