Jump to content
  • Advertisement

Archived

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

block structures

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

Hi. I looked into what a block structure is, and it''s defined as ddraw surface. I''m guessing if I was using 3dfx it would be defined as something else (I''m still using PR 2.6). Is there a consistant way of reading and writing to and from the block structure? Another words I don''t want to deal with DDraw surfaces, pitch, etc, are there functions that will allow me to work with blocks directly? Thanx

Share this post


Link to post
Share on other sites
Advertisement
With DirectDraw you call wgetblocksurface to get a pointer to it.
With all other platforms a block is 2 words (width and height) followed by the image data. To get a pointer to the image data just add 4 bytes to the block pointer.

Under Directdraw a block can have different pixel formats, but on the older platforms (dos, glide, etc) it is always 8 bit color.

Chris

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!