Nullable fixes, use Texture2d resource for rendering directly.
This commit is contained in:
@@ -79,13 +79,6 @@ namespace DaggerFramework.Rendering
|
||||
/// <param name="color">Background color.</param>
|
||||
public abstract void ClearBackground(Color color);
|
||||
|
||||
/// <summary>
|
||||
/// Loads the texture onto the GPU for later use in DrawTexture or other Texture related methods.
|
||||
/// </summary>
|
||||
/// <param name="texture">Texture to load.</param>
|
||||
/// <returns>A texture handler on the GPU.</returns>
|
||||
public abstract int LoadTexture(Texture2d texture);
|
||||
|
||||
/// <summary>
|
||||
/// Sets transforms for the next draw operation.
|
||||
/// </summary>
|
||||
@@ -131,9 +124,9 @@ namespace DaggerFramework.Rendering
|
||||
/// <summary>
|
||||
/// Draws the texture.
|
||||
/// </summary>
|
||||
/// <param name="id">Texture handle.</param>
|
||||
/// <param name="id">Texture to draw.</param>
|
||||
/// <param name="tint">Texture tint.</param>
|
||||
public abstract void DrawTexture(int id, Color tint);
|
||||
public abstract void DrawTexture(Texture2d texture, Color tint);
|
||||
}
|
||||
|
||||
public enum Msaa
|
||||
|
||||
Reference in New Issue
Block a user