hello there everybody
i`m new to game programming and directx please can anyone tell what do this sentence mean ?
int index = i * lockRect.Pitch / 4 + j;
imageData[index] = 0xffff0000;
what i cant understand why did i multiplyed lockedrect.pitch with i and then divide it by 4+j ?