mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Application now has EffectLibrary field
This commit is contained in:
@@ -11,6 +11,8 @@ namespace GlitchyEngine
|
|||||||
|
|
||||||
private Window _window ~ delete _;
|
private Window _window ~ delete _;
|
||||||
private RendererAPI _rendererApi ~ delete _;
|
private RendererAPI _rendererApi ~ delete _;
|
||||||
|
private EffectLibrary _effectLibrary ~ delete _;
|
||||||
|
|
||||||
private bool _running = true;
|
private bool _running = true;
|
||||||
|
|
||||||
private LayerStack _layerStack = new LayerStack() ~ delete _;
|
private LayerStack _layerStack = new LayerStack() ~ delete _;
|
||||||
@@ -22,6 +24,8 @@ namespace GlitchyEngine
|
|||||||
public bool IsRunning => _running;
|
public bool IsRunning => _running;
|
||||||
public Window Window => _window;
|
public Window Window => _window;
|
||||||
|
|
||||||
|
public EffectLibrary EffectLibrary => _effectLibrary;
|
||||||
|
|
||||||
[Inline]
|
[Inline]
|
||||||
public static Application Get() => s_Instance;
|
public static Application Get() => s_Instance;
|
||||||
|
|
||||||
@@ -40,7 +44,9 @@ namespace GlitchyEngine
|
|||||||
|
|
||||||
RenderCommand.RendererAPI = _rendererApi;
|
RenderCommand.RendererAPI = _rendererApi;
|
||||||
|
|
||||||
Renderer.Init(_window.Context);
|
_effectLibrary = new EffectLibrary(_window.Context);
|
||||||
|
|
||||||
|
Renderer.Init(_window.Context, _effectLibrary);
|
||||||
|
|
||||||
_imGuiLayer = new ImGuiLayer();
|
_imGuiLayer = new ImGuiLayer();
|
||||||
PushOverlay(_imGuiLayer);
|
PushOverlay(_imGuiLayer);
|
||||||
|
|||||||
Reference in New Issue
Block a user