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
@@ -113,6 +113,12 @@ namespace GlitchyEngine.Renderer
*(T*)firstByte = value;
}
[Inline]
private T GetData<T>()
{
return *(T*)firstByte;
}
public void SetData(bool value) => SetData<bool>(value);
public void SetData(float value) => SetData<float>(value);