Spot the difference

By on September 26, 2012

I didn’t for two days.

This:

for ( size_t i=0; i<numIdx; i+=3 )
{
	ind[ i ] = idx[ i ];
}

Versus this:

for ( size_t i=0; i<numIdx; ++i )
{
	ind[ i ] = idx[ i ];
}

Former was used with triangles when each index had their unique triangle and hence the loop could go 3-step increase. That was until I changed some things…

Posted in: coding
Tagged: ,

Comments

Be the first to comment.

Leave a Reply