Reimplemented Renderer2D

- Renderer2D now static
- Renderer now calls Init and Deinit of Renderer2D
- Renderer2D  now calls Init and Deinit of FontRenderer
- Fixed Deinit order of Layers and renderer (e.g. Layers now deinit first)
- Sandbox2D now uses SandboxApp (only loads different layer)
This commit is contained in:
Simon Lübeß
2021-09-29 23:27:41 +02:00
parent 9a9d75afbc
commit 4dc6c916ae
14 changed files with 568 additions and 360 deletions
+4 -2
View File
@@ -570,12 +570,14 @@ namespace Sandbox
{
public this()
{
#if SANDBOX_2D
PushLayer(new ExampleLayer2D());
#else
PushLayer(new ExampleLayer());
#endif
}
#if !SANDBOX_2D
[Export, LinkName("CreateApplication")]
#endif
public static Application CreateApplication()
{
return new SandboxApp();