Thread: Using C with XNA?

  1. #1
    Registered User
    Join Date
    May 2009
    Location
    Look in your attic, I am there...
    Posts
    92

    Using C with XNA?

    Is it possible to port a game engine like quake 2 to the Xbox through XNA or is there an alternative to XNA for use with C/C++? I have searched the web and was unable to find a concrete answer to this question (but perhaps I wasn't using the correct vocabulary)

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    XNA is for C#.

  3. #3
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431
    I understand that you can use VB.NET in recent versions, but the answer is still no.
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Technically yes, but why would you? Oh wait, you already knew that.

  5. #5
    Registered User
    Join Date
    May 2009
    Location
    Look in your attic, I am there...
    Posts
    92
    I would like to post a link for anyone curious about using C with XNA to a post I made on the App Hub forums (Using plain C with XNA? - App Hub Forums)

  6. #6
    Registered User
    Join Date
    May 2009
    Location
    Look in your attic, I am there...
    Posts
    92
    Technically yes, but why would you? Oh wait, you already knew that.
    I made that post after the one I made on this forum.

    EDIT:
    And why does it matter why I would want to? Maybe I want to create a game on the quake engine and sell it on Xbox Live, or maybe I would like to learn how to work with managed code. Please don't be so harsh with your criticisms and sarcasm.
    Last edited by 127.0.0.1; 06-21-2011 at 11:55 PM.

  7. #7
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You could do it by writing a C++/CLI wrapper but it would be pointless to do so. Performance would be the key issue. As the MSDN thread states and I whole heartedly agree with the tricks used in C cannot be used in C# and vice versa. They are 2 completely different paradigms and 2 completely different mindsets.

Popular pages Recent additions subscribe to a feed