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

Method GraphicsMenu

PanzerChasm/menu.cpp:1108–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106};
1107
1108GraphicsMenu::GraphicsMenu( MenuBase* parent, const Sound::SoundEnginePtr& sound_engine, HostCommands& host_commands )
1109 : MenuBase( parent, sound_engine )
1110 , host_commands_(host_commands)
1111 , settings_(host_commands.GetSettings())
1112{
1113 current_renderer_=
1114 settings_.GetOrSetBool( SettingsKeys::software_rendering, true ) ? Renderer::Software : Renderer::OpenGL;
1115
1116 current_num_rows_= current_renderer_ == Renderer::Software ? int(RowSoftware::NumRows) : int(RowOpenGL::NumRows);
1117}
1118
1119GraphicsMenu::~GraphicsMenu()
1120{}

Callers

nothing calls this directly

Calls 1

GetOrSetBoolMethod · 0.80

Tested by

no test coverage detected