|
CPP-TOOLBOX
|
Files | |
| input_graphics_sound_menu.cpp | |
| input_graphics_sound_menu.hpp | |
This is a basic menu that could used in almost any 3d program. Additionally it acts as the default menu for all cpptbx programs as a starting point.
In order to use the menu a few things need to happen, first it requires the following sounds to be defined:
The menu requires a few systems and a single shader to render itself, so when initializing the shader cache we do this:
It also requires the configuration system that's in charge of a config file:
Then you can create it:
In order for it to render you have to call the following member function:
The IUIRenderSuite is an interface that when implemented renders the UI, here is an example implementation: https://github.com/cpp-toolbox/ui_render_suite_implementation
It also relies on InputState, so make sure you set that up.