Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

ImGUI layer (a question

Open AItah opened this issue 7 years ago • 4 comments

Hi,

Why you have decided to include dear ImGUI layer inside your engine. It is a little weird to me since I believe that each game will have its on GUI.

BTW very nice series!

10x! A.I.

AItah avatar Apr 30 '19 05:04 AItah

ImGUI has been added as a debug and tools interface.

Xiao-Houzi avatar Apr 30 '19 06:04 Xiao-Houzi

I thought that tools interface are also per game. What do I miss?

AItah avatar Apr 30 '19 06:04 AItah

why would you reinvent the wheel each time you want to make a game? you'd definitely create a library, and if you're just gonna use one library for all, why not use one that's been made for you. save your strength for creating a great game.

Xiao-Houzi avatar Apr 30 '19 06:04 Xiao-Houzi

why would you reinvent the wheel each time you want to make a game? you'd definitely create a library, and if you're just gonna use one library for all, why not use one that's been made for you. save your strength for creating a great game.

Generally I agree. However, in the current design ImGuiLayer::OnUpdate() includes all the actual GUI items. In my opinion a better way is to exclude actual GUI items from the engine, it should be determine from outside of the engine so you can determine how the GUI will be looks like regardless of the engine which should be common for all games is as you wrote.

AItah avatar Apr 30 '19 08:04 AItah