Show HN: 3D Game Programming using bitblting in Windows
ALways nice to see simple examples, but just going through an example, I see this:<p>imgWidth = pow(2, log(sqrt(stat_p.st_size&#x2F;3))&#x2F;log(2));<p>And I have no clue why because if you take 128 as input value; it converts it either to ~126 if you don&#x27;t trunc to int before doing imgWidth * imgWidth * 3, if you truncate to int, you get 108; for what reason?