MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

Select input #79

Closed RohacekD closed 3 years ago

RohacekD commented 4 years ago

It would be nice to have some way to easily create select box for simplification of code (e.g. ConsoleWindow.cpp:45). The class should be configurable with list of options and have getter for currently selected option.

implementation

So far input GUI stuff can be found in \GLRenderer\GLRenderer\GUI\Input\ and this is suitable place where to place class. Name should begin with prefix "C_" (that stands for "class") and file should have corresponding name. Just take a look around. Codebase have no signals and reflection so far, so don't try to find any magic in implementation. I attached issue from gui library we are using, so you can inspirate there, or you can see usage of it there.

ConsoleWindow.cpp:45 void C_ConsoleWindow::Draw() const

https://github.com/ocornut/imgui/issues/1658