Original Post
Hi all,
Some of you might know me from my posts below, "Initializing directx in three easy-to-read lines" and "rendering 2,000,000 polygons in .2 ms: here''s how." Well, I''ve put into the system, an'' now I wanna get some back.
I''ve been wrestling with this bitmap problem-- I have a big wadfile with bitmaps stuck willy-nilly into them. I want to simulate the LoadBitmap command to pull information from the wadfile instead of from a resource file. The wadfile IS my resource file, and it needs to be flexible enough for the end-user to add bitmaps to it. All 64 avenues I have taken to solve this have lead me to dead ends, although I know more about the winapi bitmap functions that I ever wanted to know. I would scrap them completely if they didn''t do such good dithering.
So, my question is:
Can I make a resource at run-time? Or something similar? The LoadImage command lets me pull in a bitmap from a file or a resource, but God bless ''em, they don''t let you do it from a memory pointer. What I''d like to do is make a run-time resource from my wadfile bitmap, load it in, BitBlt it onto my directdraw surface (<-- how I justify posting this under directx/opengl/genesis3D) and then scrap the run-time resource.
Has anyone played with this sort of madness before?
Thanks in advance!
-- Goodlife
-----------------------------
Think of your mind as a door on a house. Leave the door always closed, and it's not a house, it's a prison. Leave the door always open, and it's not a house, it's a wilderness-- all the vermin creep in.