mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Separate GraphicsContext from Window, prepare for windows and swap chain for multi window
This commit is contained in:
@@ -8,11 +8,25 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
private static GraphicsContext s_GraphicsContext;
|
||||
public static GraphicsContext Get() => s_GraphicsContext;
|
||||
|
||||
private Window _currentWindow;
|
||||
|
||||
public extern SwapChain SwapChain {get;}
|
||||
private bool _immediateContext;
|
||||
|
||||
public Window CurrentWindow
|
||||
{
|
||||
get => _currentWindow;
|
||||
set => _currentWindow = value;
|
||||
}
|
||||
|
||||
protected extern void PlatformConstruct();
|
||||
|
||||
public this(Window currentWindow, bool immediateContext = false)
|
||||
{
|
||||
_currentWindow = currentWindow;
|
||||
_immediateContext = immediateContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum number of simultaneous rendertargets supported.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user