daily update on 20241226 by nitload youmu
This commit is contained in:
@@ -106,22 +106,20 @@ namespace StgSharp.MVVM.View
|
||||
|
||||
protected ViewResponder<TView> Responder => ( _binding.Responder as ViewResponder<TView> )!;
|
||||
|
||||
public T CreateRenderStream<T>( (int x, int y, int z) unitCubeSize )
|
||||
public T CreateRenderStream<T>()
|
||||
where T: RenderStream, new()
|
||||
{
|
||||
T ret = new T();
|
||||
ret.Initialize(
|
||||
_binding.context, unitCubeSize, Binding.TimeProvider );
|
||||
_binding.context, Binding.TimeProvider );
|
||||
return ret;
|
||||
}
|
||||
|
||||
public T CreateRenderStream<T>(
|
||||
ViewPort vp,
|
||||
(int x, int y, int z) unitCubeSize )
|
||||
public T CreateRenderStream<T>( ViewPort vp )
|
||||
where T: RenderStream, new()
|
||||
{
|
||||
T ret = new T();
|
||||
ret.Initialize( vp, unitCubeSize, Binding.TimeProvider );
|
||||
ret.Initialize( vp, Binding.TimeProvider );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ namespace StgSharp.MVVM.ViewModel
|
||||
{
|
||||
Interlocked.Exchange( ref _frameSpeed, _frameCount );
|
||||
Interlocked.Exchange( ref _frameCount, 0 );
|
||||
/**/
|
||||
/*
|
||||
Console.Clear();
|
||||
Console.WriteLine( FrameSpeed );
|
||||
/**/
|
||||
|
||||
@@ -70,10 +70,10 @@ namespace StgSharp.MVVM
|
||||
_handleToViewPortIndex.TryAdd( ViewPortID, this );
|
||||
}
|
||||
|
||||
internal ViewPort( Vec2 size, string name, IntPtr monitor )
|
||||
internal ViewPort(int width, int height, string name, IntPtr monitor )
|
||||
{
|
||||
_newWidth = ( int )size.X;
|
||||
_newHeight = ( int )size.Y;
|
||||
_newWidth = width;
|
||||
_newHeight = height;
|
||||
FlushSize();
|
||||
Name = name;
|
||||
Monitor = monitor;
|
||||
|
||||
Reference in New Issue
Block a user