XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

[2.0] Loading Sprite Fonts stand-alone

Last post 04-19-2008 5:29 AM by Anti. 3 replies.
  • 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 In reply to

    Re: [2.0] Loading Sprite Fonts stand-alone

    Answer
    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 In reply to

    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 In reply to

    Re: [2.0] Loading Sprite Fonts stand-alone

    Answer

    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.

Page 1 of 1 (4 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG