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

DX9 and XNA

Last post 8/17/2007 1:48 AM by Hawthorne. 7 replies.
  • 8/10/2007 5:54 PM

    DX9 and XNA

    Hi, I am currently trying to construct a GUI system for XNA or any other system.

    I have written the base in XNA and I am curious if there is any way whatsoever to pass a DX9 device off as a XNA device? Same question for a texture object in both XNA and Dx9.

    What I am trying to accomplish is allowing DX9 applications pass there device to my XNA DLL and then I want to have the XNAdevice take on the DX9 device. Same thing for a texture object. Basically im looking for interoperability between the two objects.

    Any chance of this at all with XNA and Dx9?

    -Pat
  • 8/10/2007 6:54 PM In reply to

    Re: DX9 and XNA

    When you say "DX9" do you mean native DirectX or Managed DirectX? Either way though, I suspect the answer to your question is going to be no.

  • 8/10/2007 8:24 PM In reply to

    Re: DX9 and XNA

    You might consider doing it the other way around, if it's only for windows machines. Use DirectX and let DirectX apps or XNA apps call it (write XNA .NET wrappers).  That way DirectX applications won't be required to use the XNA framework (more installation overhead for a DirectX application).
  • 8/10/2007 9:34 PM In reply to

    Re: DX9 and XNA

    ClydeCoulter:
    You might consider doing it the other way around, if it's only for windows machines. Use DirectX and let DirectX apps or XNA apps call it (write XNA .NET wrappers).  That way DirectX applications won't be required to use the XNA framework (more installation overhead for a DirectX application).

    Thats a good point. I did not think about that.

    I will definetly look into this option.

     

    -Pat

  • 8/15/2007 7:46 PM In reply to

    Re: DX9 and XNA

    After thinking about it more and talking to others, it must be done in XNA!

    So the question still remains.. Is there anyway to get a dx9 device and a dx9 texture to play with XNA?

    I simply want to use the DX9 device to the work of an XNA Device which is basically the same thing. I am also looking for interoperability between DX9 textures and XNA textures.

    Any help??

     

    -Pat

  • 8/15/2007 7:50 PM In reply to

    Re: DX9 and XNA

    If you dig down deep enough with reflection and into private properties you can probably get hold of native handles which could be used for both. However you would have to somehow ensure that neither API disposed it, or reloaded it from under you.

    Its not something I would even try to be honest. I suspect it would be easier to write a rendering free GUI and then write renderers for MDX and for XNA.

    Play Kissy Poo - a game for 4 year olds on Xbox and windows
    The ZBuffer
    News and information for XNA
      Follow The Zman on twitter, Email me
        Please read the forum FAQs - Bug/Feature reporting
          Don't forget to mark good answers and good playtest feedback when you see it!!!
  • 8/16/2007 9:35 AM In reply to

    Re: DX9 and XNA

    The ZMan:
    I suspect it would be easier to write a rendering free GUI and then write renderers for MDX and for XNA.

     * Machaira agrees :D

     

    OT: I love that the forum handles "/ me". Funny that they included this feature but omitted more important ones (unless it's built in).

    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
      Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
        Please mark posts as Answers or Good Feedback when appropriate.
  • 8/17/2007 1:48 AM In reply to

    Re: DX9 and XNA

    Ya, the more I get into it the more I think I will have to write rendering systems for every style.

    Oh well, XNA is a good system to do it first/native on!

    -Pat

Page 1 of 1 (8 items) Previous Next