Renaming Windows to WindowsGL #1049

Closed
wants to merge 1 commit into
from

Projects

None yet

7 participants

Owner

I'm starting to implement the new Windows Desktop platform using DirectX 11.

We currently have the following Windows projects:

  • MonoGame.Framework.Windows
  • MonoGame.Framework.Windows8
  • MonoGame.Framework.WindowsPhone

The first step seemed to be renaming the existing Windows project to WindowsGL so that the new project can be named Windows. This seemed like a more logical name than WindowsDX.

I'm open to better ideas, but this seems like the best one so far if we want to maintain the OpenGL Windows code.

Not sure if this affects anything else in the codebase.... installer script or templates maybe? Please let me know and i'll fix those as well.

Contributor

@tomspilman can we leave this PR open till after we have tagged the 3.0 release?
There are a few other changes we need in this. We will need 2 Windows, templates OpenGL and DirectX. The current Windows directory will need to be renamed unless we plan to put both directx and opengl code in that area.

The installer will need tweaking as we are starting to split up the assemblies into their own directories.

Owner

can we leave this PR open till after we have tagged the 3.0 release?

Sure... i sort of expected that.

We will need 2 Windows, templates OpenGL and DirectX.

I would think it would be a WindowsGL and a Windows template. I will copy the existing one and fix it up.

We could also consider not having a template for WindowsGL... it depends on if we feel it is a real platform for us or if it is simply a tool to ease GL development.

unless we plan to put both directx and opengl code in that area

We should end up with two folders... putting them under one would confuse things.

The installer will need tweaking

Looks like it is a plain text file... i'll take a first stab at fixing it.

Contributor

Doesn't WindowsMetro, WindowsModern or even WindowsRT better fit the Windows8 branch?

Owner

@raistlinthewiz

We named it Windows8 months ago. I figure it will change eventually, but I see no good changes to it right now.

WindowsMetro makes MS folk unhappy. WindowsModern is not an official or even well known term. WindowsRT is confusing as it is the name of their ARM OS... we support both Windows 8 and Windows RT.

he renaming of Windows to WindowsGL is simply to get it out of the way for the DirectX implementation.

will the DirectX implementation for Windows Desktop be part of the 3.0 release?

will it be possible to directly make calls to the underlying SharpDX library?

Owner

will the DirectX implementation for Windows Desktop be part of the 3.0 release?

No.

The Windows desktop with DirectX platform will not be available for the 3.0 release as that will happen really soon.

That said moving forward MonoGame will have much more frequent releases, so an installer with Windows DX should be available in the next month or two.

will it be possible to directly make calls to the underlying SharpDX library?

Sure. The Windows DirectX platform will be no different than the other DirectX implementations. They all use SharpDX under the hood.

Contributor

@tomspilman how about WindowsStore?
Oh and great news that we'll see WindowsDX soon :)

Owner

how about WindowsStore

To me WindowsStore is worse than WindowsModern. I know Microsoft is using the term "Windows Store App"... i don't think that will stick long term.

The point is this: until there is a clear "perfect" name for the new style Windows apps... we will not change MonoGame. It is a complete waste of time to change it now.

@tomspilman do you have an ETA when the first WindowsDX build will be available for testing?

also, will it use DirectX9 or DirectX11 for rendering?

thanks!

Contributor

The WindowsDX platform will use DirectX 11.

Owner

@matthiasgrumet

I actually already have it working (yes it is DX11). If you want to mess with my work in progress you can check out my branch:

https://github.com/SickheadGames/MonoGame/tree/windesktop

Just waiting for the 3.0 installer to be released and we move develop3d back to master. Then this pull request can be pushed thru and I can submit the pull request for the new platform.

Contributor

@tomspilman I've started testing your windesktop port (windx) with my voxeliq engine but it just throws exceptions for me on game.run(). Anything specific to look for?

[Fatal] [Program]: Voxeliq Engine is terminating because of unhandled exception.
 - [Exception] System.NullReferenceException: Object reference not set to an ins
tance of an object.
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at MonoGame.Framework.WinFormsGameWindow.RunLoop()
   at MonoGame.Framework.WinFormsGamePlatform.RunLoop()
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   at Microsoft.Xna.Framework.Game.Run()
   at VoxeliqGame.Program.Main(String[] args) in D:\coding\voxeliq\src\game\Prog
ram.cs:line 53

and

```csharp
[Fatal] [Program]: Voxeliq Engine is terminating because of unhandled exception.
 - [Exception] SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [Unknown
], ApiCode: [Unknown/Unknown], Message: The parameter is incorrect.

**Update:** Fixed my problem by following @tomspilman SV_POSITION advice over: http://monogame.codeplex.com/discussions/402753

To me WindowsStore is worse than WindowsModern. I know Microsoft is using the term "Windows Store App"... i don't think that will stick long term.

"WindowsApp" ?

I agree that term won't stick.

Contributor

Just wondering, what will be the Windows DX redistributable requirements to clients? Just the usual DirectX11 installed + .net 4.0/4.5?

Owner

@xanather - Yea... something like that. The idea is to have it work on Windows Vista and up.

Contributor

That's awesome, windows 7 will just need .net installed and windows 8 will be able to run MonoGame without anything installed!

Owner

Closing this pull. It is part of #1204

@tomspilman tomspilman closed this Jan 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment