tempbuffer合成を注入された合成器経由へ変更
このコミットが含まれているのは:
1ファイル変更
+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);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする