Update TestGame, load fonts from memory.

This commit is contained in:
2024-01-21 00:25:23 +01:00
parent 3e5e010527
commit fb5033f9a7
7 changed files with 66 additions and 72 deletions

View File

@@ -86,8 +86,6 @@ namespace DaggerFramework.Rendering
/// <returns>A texture handler on the GPU.</returns>
public abstract int LoadTexture(Texture2d texture);
public abstract int LoadFont(Font font);
/// <summary>
/// Sets transforms for the next draw operation.
/// </summary>
@@ -128,7 +126,7 @@ namespace DaggerFramework.Rendering
/// <param name="color">Color of the text.</param>
public abstract void DrawSdfText(string text, int fontSize, Color color);
public abstract void DrawText(int fontId, string text, int fontSize, Color color);
public abstract void DrawText(Font font, string text, Color color);
/// <summary>
/// Draws the texture.