
question about ddsd.lPitch & ddsd.lpSurface
The Pitch MAY be 640. And it may not. even in an 8bit mode the pitch may be greater than 640, hence the need for DirectX to provide that information.
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote
Quote:
and once the array is set up say its like lpSurface[400] where do that point to does it go2 the the 400th point on the screen and take that and plot the point there?
it goes to [400 + 0*Pitch], or the 400th pixel from the left, and the first pixel from the top. (assuming no pointer arithmetic has been performed on lpSurface.)
[ April 18, 2004: Message edited by: Xanth ]</p>