Jump to content
  • Advertisement


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


block structures

This topic is 6693 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
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.


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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!