15 lines
402 B
C#
15 lines
402 B
C#
using Engine.Graphics.Render.Quad;
|
|
using Engine.Graphics.Texture;
|
|
using OpenTK.Mathematics;
|
|
|
|
namespace TestUtil.Renderer;
|
|
|
|
public class MockQuadRenderer : IQuadRenderer
|
|
{
|
|
public event Action<Matrix4, Vector4, Texture?>? OnCommit;
|
|
|
|
public void Commit(in Matrix4 parModelMatrix, in Vector4 parColor, Texture? parTexture = null)
|
|
{
|
|
OnCommit?.Invoke(parModelMatrix, parColor, parTexture);
|
|
}
|
|
} |