mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user