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!
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
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 https://github.com/mono/MonoGame/tree/develop3d/MonoGame.Framework/Graphics
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.