daily update on 20240610 by nitload youmu
This commit is contained in:
@@ -75,23 +75,23 @@ namespace StgSharp.Stg
|
||||
VertexBuffer vbo;
|
||||
ElementBuffer ebo;
|
||||
|
||||
public OneDimensionalCollisionTexture2D(RenderStreamConstructArgs args) : base(args)
|
||||
public OneDimensionalCollisionTexture2D(ViewPort args) : base(args,(1,1,1))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Collision TextureGL unit cannot share context with other render stream or set as mainstream of a form,{($"and cannot be inited by {typeof(RenderStreamConstructArgs).Name} as well.")}"
|
||||
$"Collision TextureGL unit cannot share context with other render stream or set as mainstream of a form," +
|
||||
$"and cannot be inited by {typeof(ViewPort).Name} as well."
|
||||
);
|
||||
}
|
||||
|
||||
#pragma warning disable CS8618
|
||||
public OneDimensionalCollisionTexture2D(Radius angleStride, string name) :
|
||||
#pragma warning restore CS8618
|
||||
base(new RenderStreamConstructArgs
|
||||
base( new ViewPort()
|
||||
{
|
||||
Height = 1,
|
||||
Width = (int)((new Radius(Scaler.Pi)) / angleStride),
|
||||
UnitCubeSize = (1, 1, 1),
|
||||
Name = name
|
||||
})
|
||||
Name = name,
|
||||
},(1, 1, 1))
|
||||
{
|
||||
InternalInit();
|
||||
}
|
||||
|
||||
@@ -11,17 +11,16 @@ namespace StgSharp.Stg.Touhou
|
||||
{
|
||||
|
||||
|
||||
|
||||
public static ViewModel BuildTouhouWorld()
|
||||
/*
|
||||
public static View BuildTouhouWorld()
|
||||
{
|
||||
|
||||
TouhouForm form = new TouhouForm();
|
||||
|
||||
|
||||
|
||||
return form;
|
||||
}
|
||||
|
||||
/**/
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,13 +6,5 @@ using System.Text;
|
||||
|
||||
namespace StgSharp.Touhou
|
||||
{
|
||||
public class TouhouForm:ViewModel
|
||||
{
|
||||
public TouhouForm():
|
||||
base()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user