daily update on 20240610 by nitload youmu

This commit is contained in:
Nitload
2024-06-10 15:11:01 +08:00
parent c0093f7b5c
commit f6963b8e00
96 changed files with 2927 additions and 2290 deletions
+6 -6
View File
@@ -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();
}