Application now has EffectLibrary field

This commit is contained in:
Simon Lübeß
2021-08-25 22:46:50 +02:00
parent 7dda8bdd25
commit 22252f9161
+7 -1
View File
@@ -11,6 +11,8 @@ namespace GlitchyEngine
private Window _window ~ delete _;
private RendererAPI _rendererApi ~ delete _;
private EffectLibrary _effectLibrary ~ delete _;
private bool _running = true;
private LayerStack _layerStack = new LayerStack() ~ delete _;
@@ -22,6 +24,8 @@ namespace GlitchyEngine
public bool IsRunning => _running;
public Window Window => _window;
public EffectLibrary EffectLibrary => _effectLibrary;
[Inline]
public static Application Get() => s_Instance;
@@ -40,7 +44,9 @@ namespace GlitchyEngine
RenderCommand.RendererAPI = _rendererApi;
Renderer.Init(_window.Context);
_effectLibrary = new EffectLibrary(_window.Context);
Renderer.Init(_window.Context, _effectLibrary);
_imGuiLayer = new ImGuiLayer();
PushOverlay(_imGuiLayer);