daily update on 20240613 by nitload youmu[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[C[4
This commit is contained in:
@@ -15,14 +15,14 @@ namespace StgSharp.Logic
|
||||
ViewPortDesigner designer, (int x, int y, int z) unitCubeSize
|
||||
)
|
||||
{
|
||||
View ret = new View(this.context, designer,unitCubeSize);
|
||||
View ret = new View(this.viewPortDisplay, designer,unitCubeSize);
|
||||
allView.Add(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public T BuildRenderStream<T>(View v, (int, int, int) cube) where T : RenderStream
|
||||
public T BuildRenderStream<T>(View view) where T : RenderStream
|
||||
{
|
||||
T ret = Activator.CreateInstance(typeof(T), v.Port, cube) as T ??
|
||||
T ret = Activator.CreateInstance(typeof(T), view.Port, view.UnitCubeSize) as T ??
|
||||
throw new InvalidOperationException("Cannot build new render stream.");
|
||||
ret.timeProvider = this.frameTimeProvider;
|
||||
ret.InternalInit();
|
||||
|
||||
Reference in New Issue
Block a user