daily update on 20241226 by nitload youmu

This commit is contained in:
Nitload
2024-12-26 03:09:46 +08:00
parent 7c8d462ca5
commit 592ad55d57
94 changed files with 3767 additions and 1484 deletions
@@ -50,7 +50,6 @@ namespace StgSharp.Graphics
public abstract class RenderStream
{
private protected (int x, int y, int z) _coordStretch;
private protected ViewPort primeArgs;
private Camera nativeCamera;
internal TimeSpanProvider _timeProvider;
@@ -86,8 +85,6 @@ namespace StgSharp.Graphics
get => primeArgs.Name;
}
public Vec2 GlobalCoordSize => (( Width * 1.0f ) / _coordStretch.x, ( Height * 1.0f ) / _coordStretch.y);
public ViewPort BindedViewPortContext
{
get => primeArgs;
@@ -152,7 +149,7 @@ namespace StgSharp.Graphics
{
TTarget target = new TTarget();
target.Initialize(
source.BindedViewPortContext, source._coordStretch,
source.BindedViewPortContext,
source._timeProvider );
return target;
}
@@ -204,7 +201,6 @@ namespace StgSharp.Graphics
public void Initialize(
ViewPort v,
(int, int, int) unitCubeSize,
TimeSpanProvider timeProvider )
{
if( v == null ) {
@@ -212,7 +208,6 @@ namespace StgSharp.Graphics
}
primeArgs = v;
this._timeProvider = timeProvider;
_coordStretch = unitCubeSize;
nativeCamera = new Camera();
PlatformSpecifiedInitialize();
CustomizeInit();