I’m converting a game from XNA to iOS with Monogame.
In the code snippet below,
smallDeform is a
Texture2D on which I call the
smallDeform = Game.Content.Load<Texture2D>("Terrain/..."); smallDeform.GetData(smallDeformData, 0, smallDeform.Width * smallDeform.Height);
I’m having some problem with Monogame because the feature in iOS has not been implemented yet because it returns this exception.
#if IOS throw new NotImplementedException(); #elif ANDROID
I tried to serialize the data in a XML file from Windows to load the whole file from iOS. The serialized files weight more than 100MB each, that is quite unacceptable to parse.
Basically, I’m looking for a workaround to get the data (for instance a
Color) from a texture without using the
PS: I’m on Mac, so I can’t use the Monogame SharpDX library.
Thanks in advance.