[2.0] Loading Sprite Fonts stand-alone

Last post 04-19-2008, 5:29 AM by Anti. 3 replies.
Sort Posts: Previous Next
  •  04-18-2008, 8:02 PM

    [2.0] Loading Sprite Fonts stand-alone

    I've looked around and I'm still not sure this has been posted. Anyhow, I'm trying to make a texture class in a class libary to use with an xna game. I would like it to operate independently however of XNA. I already have programs using XNA functionality without the whole game class.

    My problem occurs when I try to create a contentManager for the class and it asks for a service provider. I'm not sure how all of that works but even so, I'd like it if I could just load the sprite fonts from the output folder. From what I know, this only seems possible with other classes such as effects and textures.

  •  04-18-2008, 8:40 PM

    Re: [2.0] Loading Sprite Fonts stand-alone

    The WinForms content loading sample has code that does exactly that. You can even use the msbuild code in there to load the XML files instead of the XNB files at run-time, etc.




    -----------------------------------------------
    Jim Welch
  •  04-19-2008, 3:55 AM

    Re: [2.0] Loading Sprite Fonts stand-alone

    Wow that seems like a hastle to have that many helper files, I don't need it to be done that bad ! Thanks though! Maybe I can come up with a cheap work around.
  •  04-19-2008, 5:29 AM

    Re: [2.0] Loading Sprite Fonts stand-alone

    To thom who this may concern, I've been browsing around and I found a easier example right here http://www.fairyengine.com/articles/xnainform.htm. Also, I was using a XNA 1.0 library instead of a XNA 2.0 library which caused problems.

View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback