shoko/Program.cs

36 lines
850 B
C#
Raw Normal View History

2023-10-02 18:49:24 +00:00
using Raylib_cs;
using rlImGui_cs;
namespace Shoko;
class Program
{
static void Main(string[] args)
{
Raylib.SetConfigFlags(
ConfigFlags.FLAG_MSAA_4X_HINT |
ConfigFlags.FLAG_WINDOW_HIGHDPI |
ConfigFlags.FLAG_WINDOW_MAXIMIZED |
ConfigFlags.FLAG_WINDOW_RESIZABLE |
ConfigFlags.FLAG_VSYNC_HINT);
Raylib.InitWindow(0, 0, "Shoko");
2023-10-03 19:52:26 +00:00
rlImGui.BeginInitImGui();
bool quit = MainUI.Load(args);
2023-10-03 19:52:26 +00:00
rlImGui.EndInitImGui();
2023-10-02 18:49:24 +00:00
while(!Raylib.WindowShouldClose() && quit)
{
Raylib.BeginDrawing();
2023-11-10 21:45:01 +00:00
MainUI.PreRender();
2023-10-02 18:49:24 +00:00
rlImGui.Begin();
quit = MainUI.Render();
rlImGui.End();
Raylib.EndDrawing();
}
rlImGui.Shutdown();
Raylib.CloseWindow();
}
}