app initialization rework

This commit is contained in:
2026-04-01 18:25:29 +02:00
parent ffd9f44d11
commit ca2642bfe3
5 changed files with 66 additions and 6 deletions

View File

@@ -0,0 +1 @@
#include "AppLayer.h"

11
SakuraVNE/src/AppLayer.h Normal file
View File

@@ -0,0 +1,11 @@
#include "Layer.h"
class AppLayer : SakuraVNE::Layer {
AppLayer();
virtual ~AppLayer();
private:
// bool OnMouseButtonPressed(Core::MouseButtonPressedEvent &event);
// bool OnMouseMoved(Core::MouseMovedEvent &event);
// bool OnWindowClosed(Core::WindowClosedEvent &event);
};

View File

@@ -1,12 +1,15 @@
#include "Application.h" #include "Application.h"
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
Application app; AppData appData;
appData.name = "Sakura Visual Novel Creator";
appData.windowdata.title = appData.name;
appData.windowdata.width = 1280;
appData.windowdata.height = 720;
bool success = app.Init(); Application app(appData);
// app.PushLayer<AppLayer>();
if (success) app.Run();
app.Run();
return 0; return 0;
} }

View File

@@ -1,8 +1,53 @@
[Window][Debug##Default] [Window][Debug##Default]
Pos=60,60 Pos=60,60
Size=400,400 Size=400,400
Collapsed=0
[Window][Hello World!] [Window][Hello World!]
Pos=147,38 Pos=147,38
Size=311,180 Size=311,180
Collapsed=0
[Window][Dear ImGui Demo]
Pos=730,0
Size=550,720
Collapsed=0
DockId=0x00000007,0
[Window][Test window]
Size=618,101
Collapsed=0
DockId=0x00000001,0
[Window][Delta time]
Pos=60,60
Size=178,67
Collapsed=0
[Window][Calculated Delta time]
Size=1280,101
Collapsed=0
DockId=0x00000002,0
[Window][WindowOverViewport_11111111]
Pos=0,0
Size=1280,720
Collapsed=0
[Window][Framerate]
Pos=0,0
Size=442,720
Collapsed=0
DockId=0x00000006,0
[Docking][Data]
DockSpace ID=0x08BD597D Window=0x1BBC0F80 Pos=0,0 Size=1280,720 Split=Y
DockNode ID=0x00000003 Parent=0x08BD597D SizeRef=1280,101 Split=X Selected=0xAA1D0058
DockNode ID=0x00000001 Parent=0x00000003 SizeRef=618,101 Selected=0xAA1D0058
DockNode ID=0x00000002 Parent=0x00000003 SizeRef=660,101 Selected=0x561EDE67
DockNode ID=0x00000004 Parent=0x08BD597D SizeRef=1280,617 Split=X
DockNode ID=0x00000005 Parent=0x00000004 SizeRef=728,720 Split=X
DockNode ID=0x00000006 Parent=0x00000005 SizeRef=442,617 Selected=0x0FC82981
DockNode ID=0x00000008 Parent=0x00000005 SizeRef=284,617 CentralNode=1
DockNode ID=0x00000007 Parent=0x00000004 SizeRef=550,720 Selected=0x5E5F7166