some C# cause why not. C# guy might like this? idk. some python too. mostly simulations. WindowsAPI C# is good i guess
This commit is contained in:
26
simulations/fluids/fluidsC#/Program.cs
Normal file
26
simulations/fluids/fluidsC#/Program.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using OpenTK.Windowing.Common;
|
||||
using OpenTK.Windowing.Desktop;
|
||||
|
||||
namespace fluidsC_;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var settings = GameWindowSettings.Default;
|
||||
var nativeSettings = new NativeWindowSettings()
|
||||
{
|
||||
Size = new OpenTK.Mathematics.Vector2i(1200, 800),
|
||||
Title = "GPU Fluid Simulation - FIXED",
|
||||
Flags = ContextFlags.ForwardCompatible,
|
||||
Profile = ContextProfile.Core,
|
||||
API = ContextAPI.OpenGL,
|
||||
APIVersion = new System.Version(4, 3)
|
||||
};
|
||||
|
||||
using (var window = new FluidWindow3D_GPU(settings, nativeSettings))
|
||||
{
|
||||
window.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user