Jump to content
  • Advertisement
Sign in to follow this  
J.K

Directx And Multi-Platform Games

This topic is 714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I was just wondering about how is it possible to make a Multi-Platform games in DirectX, which is possible in Xenko Game Engine for example.

I thougth that C# and DirectX are targeting for Windows, so how is that possible to make games for other platforms ?

Share this post


Link to post
Share on other sites
Advertisement

I'm not familiar with the Xenko Game Engine, but usually they just include two different renderers - a DirectX based one for Windows, and an OpenGL based one for Mac & Linux.  When they build for each platform, the appropriate renderer is linked against and it simply uses the right one automatically.

Share this post


Link to post
Share on other sites
The same way that multiplatform games targetting console APIs and PC APIs are made.

This is something that has been a solved problem for years. Multiplatform doesn't just mean Linux and the consoles don't use OpenGL. Everything has platform-specific code; using OpenGL doesn't automagically make a game multiplatform. Sound, input, networking, threading, memory, timing, windowing, etc - they're all platform-specific too, and OpenGL is nothing to do with them.

So you write an abstraction layer over the platform-specific parts and have done with it.

As for C# - there's absolutely nothing platform-specific about that. It's been multiplatform for years, it's even an open standard.

Share this post


Link to post
Share on other sites

using OpenGL doesn't automagically make a game multiplatform

 using OpenGL doesn't even automagically make a game multi-hardware-vendor :wink: :lol:

Share this post


Link to post
Share on other sites
SeanMiddleditch

 

It looks pretty complicated. I wonder how looks porting to xbox or to playstation in that engine.

I will look how it looks in MonoGame (it also supports Multiplatforming).

 

Thank you all for the quick help.

Regards.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!