can i do this?
Im using DDLoadBitmap() from ddutil.cpp to load my bmps. The problems is that im going to put resource files into my wrapper and i need to be able to expand on DDLoadBitmap() and have it take a file pointer. Can I do this with the win32 functions it uses? I dont really want to write my own bmp loader cause I''ve tried before and its total crap.
Yes, it''s possible. I''m already employing it into my programs. It works like this:
lpddsSurface = DDLoadBitmap(lpdd, MAKEINTRESOURCE(IDB_BITMAP), width, height);
It should load from a resource file then. Good luck!
lpddsSurface = DDLoadBitmap(lpdd, MAKEINTRESOURCE(IDB_BITMAP), width, height);
It should load from a resource file then. Good luck!
[email=jperegrine@customcall.com]ColdfireV[/email]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement