My problem is the I need to represent a length-changing floor using a Texture2D, which means a floor that the sides has the image of the sides, and in the middle it repeats the same 'middle' image, like so:
To achieve this, I get the 'left edge', the 'middle' and the 'right edge' textures, problem is I don't know how to merge them into one single texture2D,
It is important to do that at run-time because the floor length is changing (horizontally), I read you can do that using SetData but I have no idea how...
It is very important for me that it will act as one texture and not multiple texture parts because I am using Farseer Physics Engine to move the floor and use it.
I am using C# and XNA with Visual Studio 2010, I am an almost-experienced C# programmer,
Thank you!