Daily update on 20250316-095544 by Nitload Youmu. Additional Message : Linear math inmprovement

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-16 09:55:44 +08:00
parent 753cc167bc
commit a5aef8506d
58 changed files with 3162 additions and 506 deletions
+7 -11
View File
@@ -47,8 +47,8 @@ namespace StgSharp.Graphics
private TextureProvider _texture;
public PlainGeometryMesh(
[NotNull] PlainGeometry shape,
[NotNull] TextureProvider texture )
[NotNull] PlainGeometry shape,
[NotNull] TextureProvider texture )
{
if( shape.VertexCount > texture.TextureCoordinate.Length ) {
throw new ArgumentException(
@@ -62,16 +62,12 @@ namespace StgSharp.Graphics
//private Image _texture;
public PlainGeometryMesh(
PlainGeometry shape,
Image texture,
Vec2[] texCoord )
PlainGeometry shape,
Image texture,
Vec2[] texCoord )
{
if( shape == null ) {
throw new ArgumentNullException( nameof( shape ) );
}
if( texCoord == null ) {
throw new ArgumentNullException( nameof( texCoord ) );
}
ArgumentNullException.ThrowIfNull( shape );
ArgumentNullException.ThrowIfNull( texCoord );
if( shape.VertexCount > texCoord.Length ) {
throw new ArgumentException(