Jump to content
  • Advertisement


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


mmx.. and BMP's

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

hey.. i have 3 questions 1. where can i find info on the header format of 8-bit BMP''s... (i need to create them dynamically) 2. how does one make MASM compile MMX code.. every time i try it, it says that i am not in the correct CPU mode.. how do i fix this... 3. when i create the BMP''s in system memory i then blit them into video memory with directdraw.. is there a faster way .. i.e. can i write the images straight to video memory? Thanx for the info RanXacT

Share this post

Link to post
Share on other sites
Try this

typedef struct tagBITMAPFILEHEADER { // bmfh

WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;

The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a device-independent bitmap (DIB).



Specifies the file type. It must be BM.


Specifies the size, in bytes, of the bitmap file.


Reserved; must be zero.


Reserved; must be zero.


Specifies the offset, in bytes, from the BITMAPFILEHEADER structure to the bitmap bits.


A BITMAPINFO or BITMAPCOREINFO structure immediately follows the BITMAPFILEHEADER structure in the DIB file.

See Also


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!