Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

SDL - SwapChain - @MG Maintainers.

$
0
0

@SpiceyWolf wrote:

Hi, I was pondering what relevance making a GL control might have once again (After my return from the long break from the community) now that MonoGame runs on SDL. I remember back when TK controls were no longer usable something was being done around the Context handler in MG directly to use SwapChainRenderTarget from DirectX and to the best of my memory it wasnt able to streamline between DX and GL the same syntax utilizing it...

Somehow or another this ended up leading to a block on getting direct access to the context handlers without generation of more windows (Which breaks functionality of the controls as for some reason only 1 context would produce visual content after the change).

To my understanding if GL were capable of mixing in with the SwapChain API (I guess it required window information without pregeneration of a control as TK did?) then it wouldnt have been an issue...

Now that that background is out of the way, I have been looking into what SDL might offer as Im not sure the exact implementation MG went about getting SDL support and it is a behemoth that cant just be quickly skimmed through I leave this to those who might be more familiar with whats going on in the inner code who can possibly get something done... but I came accross this which appears to be recreating SwapChain functionality in SDL (To the best of my knowlege) which maybe someone might be interested in investigating and possibly translating to our MonoGame to have a GL based SwapChain and hopefully a lift on the ban for GL context access...

https://www.libsdl.org/tmp/SDL/src/render/direct3d11/SDL_render_d3d11.c

Side Note: I had 2 ideas of what exactly that was doing, it was either getting access to DirectX so SDL could use DX as a backend directly or recreating DX functionality within itself... either way I would think we can utilize that somehow to gain SwapChain API for GL. Thanks for your time.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles