Questions need answering
There is critical information missing that can only be filled with assumptions CL_SpriteDescription is a class and you have given no definiion of the class. Similarly no defintion is give for CL_PixelBuffer I have done plenty of graohics programmimg and I know exactly what this procedure is doing but I am still only guessing at things and that could be a waste of time. If you want a generic procedure then CL_SpriteDescription is dropped. cl_rgba is an undefined constant but obviously stands for an R G B & alpha channel where each value is a byte and the 4 byte array represents 1 pixel. explored_vector is a byte array where each byte represents 1 pixel and where each byte is set to 1 if we have touched it. The rest of the conversion is dead simple. Regards Roger Fedyk
