SoftwareCompositorをIBufferCompositorの実装へ変更
このコミットが含まれているのは:
2ファイル変更
+13
-1
検索条件に一致するファイルはありません
@@ -3,8 +3,17 @@ using System.Numerics;
|
||||
|
||||
namespace LuaScript
|
||||
{
|
||||
internal static class SoftwareCompositor
|
||||
internal sealed class SoftwareCompositor : IBufferCompositor
|
||||
{
|
||||
public void Compose(byte[] dst, int dstW, int dstH, byte[] src, int srcW, int srcH, in DrawCommand command)
|
||||
{
|
||||
bool linear = command.Antialias != 0d;
|
||||
if (command.Poly is { } poly)
|
||||
DrawPolyInto(dst, dstW, dstH, src, srcW, srcH, poly, command.Alpha, linear);
|
||||
else
|
||||
DrawInto(dst, dstW, dstH, src, srcW, srcH, command.Ox, command.Oy, command.Zoom, command.Aspect, command.Alpha, linear);
|
||||
}
|
||||
|
||||
public static void DrawInto(
|
||||
byte[] dst, int dstW, int dstH,
|
||||
byte[] src, int srcW, int srcH,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする