Quote Originally Posted by Brainer
I suppose this method is not a member of any class and is called within SetTex method. Am I right?
Right

TTextureSet.SetTex makes call to nxSetTex

Also, why there is private SetCount procedure and Count2 variable, is because i made setlength calls to power of 2 only. This reduce amount of times array is resized and likely makes program faster.