Search code examples
xnacurve

Load Curve from file instead using Content Manager


I'm looking to load a Curve file in XNA but not through the content manager process e.g. Load("").

Is there any way to do this?

For example:

Curve curve = new Curve("filename"); or Curve curve = Curve.FromFile("filename"); // similar to loading texture2d and song.


Solution

  • Creating curve data in xml form and building/importing it using the content processor will work (and the easiest way to go) for PC, win7phone, & xb360. If you are planning more platforms than that, then yes, you would have to write your own.