daily update on 20240315 by nitload youmu
This commit is contained in:
@@ -3,13 +3,12 @@ using StgSharp.Math;
|
||||
|
||||
namespace StgSharp.Geometries
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 平面几何体。包含三角形,对称四边形,自由多边形等。最多可由16个点参数定义。
|
||||
/// </summary>
|
||||
public abstract class PlainGeometry
|
||||
{
|
||||
protected FrameTimer time;
|
||||
protected TimeProvider time;
|
||||
|
||||
internal PartialPlainCoordinate coordinate;
|
||||
internal Matrix2x4 textureFrame;
|
||||
@@ -22,16 +21,18 @@ namespace StgSharp.Geometries
|
||||
/// <summary>
|
||||
/// Tick time this geometry eas crested
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
public uint BornTime => time;
|
||||
|
||||
internal abstract int[] Indices { get; }
|
||||
|
||||
public PlainGeometry(Form form)
|
||||
{
|
||||
time = new FrameTimer(form);
|
||||
time = new TimeProvider(form);
|
||||
}
|
||||
|
||||
public PlainGeometry() { }
|
||||
public PlainGeometry()
|
||||
{ }
|
||||
|
||||
internal abstract void UpdateCoordinate(uint tick);
|
||||
|
||||
@@ -48,8 +49,5 @@ namespace StgSharp.Geometries
|
||||
public abstract Plain GetPlain();
|
||||
|
||||
//public abstract Rectangle GetRenderFrame();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using StgSharp.Controlling;
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Math.Linear;
|
||||
|
||||
using System.Numerics;
|
||||
|
||||
namespace StgSharp.Geometries
|
||||
@@ -131,4 +132,4 @@ namespace StgSharp.Geometries
|
||||
vertexMat.vec5 = origin + movVertex5(nowTick).vec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user