how can i add these 'for' on a multithread?
Code:
for(int X=100, H=imgTexture.ImageHeight; X<1000; X++)        {
            if(Speed >1000) Speed=1;
            img.DrawLine3D({(float)X-Speed,100,(float)H-Speed},{(float)X-Speed,400,(float)H-Speed},0,imgTexture, H,0,false);
            H++;
        }
these loop depends on 'img' and 'imgTexture' and 'Speed'.
i can create a function void with these loop, but i don't understand how can i add it on multithread