MVVM frame work done, under unit test

This commit is contained in:
Nitload
2024-07-25 04:41:24 +08:00
parent 924fe6eef7
commit da75200347
101 changed files with 8435 additions and 847 deletions
@@ -13,7 +13,7 @@ namespace StgSharp.Controls
{
private PlainGeometryMesh renderMesh;
public override vec4d[] TextureBox
public override ReadOnlySpan<vec4d> TextureBox
{
get => renderMesh.TextureCoord;
}
@@ -23,9 +23,9 @@ namespace StgSharp.Controls
yield return renderMesh;
}
public DecorationBox(Rectangle bound, Image texture, vec4d[] texCoord)
public DecorationBox(Rectangle bound, Image texture, vec2d[] texCoord)
{
renderMesh = new PlainGeometryMesh(BoundingBox, texture, texCoord);
renderMesh = new PlainGeometryMesh(BoundingBox, new TextureProvider(texture, texCoord));
}
}
}