| 1066 | // Graphics Menu |
| 1067 | |
| 1068 | class GraphicsMenu final : public MenuBase |
| 1069 | { |
| 1070 | public: |
| 1071 | GraphicsMenu( MenuBase* parent, const Sound::SoundEnginePtr& sound_engine, HostCommands& host_commands ); |
| 1072 | ~GraphicsMenu() override; |
| 1073 | |
| 1074 | virtual void Draw( IMenuDrawer& menu_drawer, ITextDrawer& text_draw ) override; |
| 1075 | virtual MenuBase* ProcessEvent( const SystemEvent& event ) override; |
| 1076 | |
| 1077 | private: |
| 1078 | struct Renderer |
| 1079 | { |
| 1080 | enum : int |
| 1081 | { |
| 1082 | OpenGL, Software, NumRenderers |
| 1083 | }; |
| 1084 | }; |
| 1085 | struct RowOpenGL |
| 1086 | { |
| 1087 | enum : int |
| 1088 | { |
| 1089 | Renderer, DynamicLighting, Shadows, TexturesFiltering, MenuTexturesFiltering, HudTexturesFiltering, MSAA, ApplyNow, NumRows |
| 1090 | }; |
| 1091 | }; |
| 1092 | struct RowSoftware |
| 1093 | { |
| 1094 | enum : int |
| 1095 | { |
| 1096 | Renderer, PixelSize, Shadows, ApplyNow, NumRows |
| 1097 | }; |
| 1098 | }; |
| 1099 | |
| 1100 | private: |
| 1101 | HostCommands& host_commands_; |
| 1102 | Settings& settings_; |
| 1103 | int current_renderer_= 0; |
| 1104 | int current_row_= 0; |
| 1105 | int current_num_rows_; |
| 1106 | }; |
| 1107 | |
| 1108 | GraphicsMenu::GraphicsMenu( MenuBase* parent, const Sound::SoundEnginePtr& sound_engine, HostCommands& host_commands ) |
| 1109 | : MenuBase( parent, sound_engine ) |
nothing calls this directly
no outgoing calls
no test coverage detected