Original Post
Bonjourno...
I have found the following code in an DirectX9 SDK sample and I need to be able to understand it to move on.
LONG m_lVidPitch; // Video Pitch m_lVidPitch = (m_lVidWidth * 3 + 3) & ~(3); // Forcing RGB24This code sets the pitch of a surface, although I dont understand the syntax. What does the ''& ~(3)'' do? Also does anyone know of any tutorials where I can learn all this bit manipulation stuff for myself? Thank you in advance. Mark Coleman