block structures

Started by
0 comments, last by kill 23 years, 10 months ago
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
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
Author of Power Render (http:/www.powerrender.com)

This topic is closed to new replies.

Advertisement