Hi Everyone,
Me again!
I am having an issue with drawing images to the screen, it appears the coordinates gradually deviate the further away from the top left you try and draw things.
I have a piece of code which does this:
for ( int t = 0; t < winHeight + texHeight; t+=texHeight )
{
context->SetTranslation(0, 0);
context->SetScale(1, 1);
context->SetRotation(0);
context->DrawImage(m_BlockTex, 0, t);
}
winHeight is 768 and texHeight is 64
Therefore 12 images should be drawn and fit on the screen vertically. However, as you can see from the attached image this is not the case.
Anyone know what might be going on?
Regards,
James