tempbuffer合成を注入された合成器経由へ変更

このコミットが含まれているのは:
routersys committed 2026-07-02 12:52:56 +09:00
1 親 ea4f096bc4
コミット 5e40f45910
1ファイル変更
+3 -5
+3 -5
ファイルの表示
@@ -91,6 +91,8 @@ namespace LuaScript
internal void ClearEffects() => _effectRequests.Clear();
internal IBufferCompositor Compositor { get; set; } = new SoftwareCompositor();
private readonly List<DrawCommand> _drawCommands = [];
public IReadOnlyList<DrawCommand> DrawCommands => _drawCommands;
@@ -139,11 +141,7 @@ namespace LuaScript
_buffers["t"] = temp;
}
bool linear = command.Antialias != 0d;
if (command.Poly is { } poly)
SoftwareCompositor.DrawPolyInto(temp.Data, temp.Width, temp.Height, src, ImageWidth, ImageHeight, poly, command.Alpha, linear);
else
SoftwareCompositor.DrawInto(temp.Data, temp.Width, temp.Height, src, ImageWidth, ImageHeight, command.Ox, command.Oy, command.Zoom, command.Aspect, command.Alpha, linear);
Compositor.Compose(temp.Data, temp.Width, temp.Height, src, ImageWidth, ImageHeight, command);
}
private readonly Dictionary<string, (byte[] Data, int Width, int Height)> _buffers = new(StringComparer.Ordinal);