2023-10-02 18:49:24 +00:00
|
|
|
using Raylib_cs;
|
|
|
|
using rlImGui_cs;
|
|
|
|
|
|
|
|
namespace Shoko;
|
|
|
|
|
|
|
|
class Program
|
|
|
|
{
|
|
|
|
static void Main(string[] args)
|
|
|
|
{
|
2023-10-08 18:09:54 +00:00
|
|
|
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();
|
2023-10-08 18:09:54 +00:00
|
|
|
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();
|
|
|
|
Raylib.ClearBackground(Color.WHITE);
|
|
|
|
rlImGui.Begin();
|
|
|
|
|
|
|
|
quit = MainUI.Render();
|
|
|
|
|
|
|
|
rlImGui.End();
|
|
|
|
Raylib.EndDrawing();
|
|
|
|
}
|
|
|
|
rlImGui.Shutdown();
|
|
|
|
Raylib.CloseWindow();
|
|
|
|
}
|
|
|
|
}
|