MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / GraphicsMenu

Class GraphicsMenu

PanzerChasm/menu.cpp:1068–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066// Graphics Menu
1067
1068class GraphicsMenu final : public MenuBase
1069{
1070public:
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
1077private:
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
1100private:
1101 HostCommands& host_commands_;
1102 Settings& settings_;
1103 int current_renderer_= 0;
1104 int current_row_= 0;
1105 int current_num_rows_;
1106};
1107
1108GraphicsMenu::GraphicsMenu( MenuBase* parent, const Sound::SoundEnginePtr& sound_engine, HostCommands& host_commands )
1109 : MenuBase( parent, sound_engine )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected