Skip to main content
gamedev.net
🔒 Locked

loadbitmap() function

Started by seze8 3 replies 900+ views
Original Post
seze8
seze8
hello, I was wondering if anyone has a function to load a bitmap using the inline assembler in MSVC++. I was hoping that I could put the assembly code in a header file and include it in the main file when I make it. A simple bitmap function would suffice as long as I can call upon it at any time and unload the bitmap at anytime. Thanks, -darkcoder8 -darkcoder8
-darkcoder8
Shannon Barber
Shannon Barber
There''s the LoadBitmap Win32 API call...
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Dactylos
Dactylos
Why would it have to be in assembly?
seze8
seze8
To make it a little faster, unless you can make a function that''s pretty fast.
Thanks,
-darkcoder8

-darkcoder8
-darkcoder8
CrazedGenius
CrazedGenius
Disk access itself is slow enough that it should not be done during any time critical tasks. If you look at all the factors that affect the time of loading a bitmap, the actual code execution is very small compared to the disk operation. Taking the time to optimize LoadBitmap probably isn''t worth it unless you have something extremely specific you''re trying to do.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.