Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

if i use monogame 3.0 beta on windows desktop, does it use the directx renderer (sharpdx) or the opengl renderer by default?

if it uses directx is there away to make sharpdx call directly? thanks!

share|improve this question
up vote 4 down vote accepted

in the meantime i found out that it does use OpenGL for windows desktop and DirectX for windows 8 metro.

share|improve this answer
It's worth as an edit to post or as a comment – Sri Harsha Chilakapati Dec 28 '12 at 13:11
@SriHarshaChilakapati then why is there the "Answer your own question" feature? – clamp Dec 28 '12 at 14:40
If you had solved it before others did, you can use it. – Sri Harsha Chilakapati Dec 29 '12 at 9:13
@SriHarshaChilakapati isnt that exactly what i did? – clamp Dec 29 '12 at 10:04
No. It's not a solution. It's your current finding but it's not the actual solution. If it's the actual solution, you'd mark it Accepted. – Sri Harsha Chilakapati Dec 29 '12 at 10:45

MonoGame currently only supports OpenGL. It has basic support for OpenGL ES for Android/iOS, and its DirectX support is still in development and incomplete. Hence, to answer both your questions (please don't post more than one question at a time):

It uses OpenGL by default.

There is no way to make it use DirectX at runtime, other than to recompile MonoGame in DirectX mode (which is not likely going to be usable for real projects yet).

Relevant code for MonoGame's graphics layers is at

You will notice that DirectX support is wrapped behind conditional compilation in the code, that OpenGL assemblies are always pulled in even when compiled in DirectX mode, and that there is not even a project configuration in the .csproj that sets the necessary directives.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.