summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.h
blob: df328ec5ecfaa0f30acfc9ec43caee4044bf8fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include "DolphinQt/Config/Graphics/GraphicsWidget.h"

class GraphicsWindow;
class QCheckBox;
class QComboBox;
class QSpinBox;

class SoftwareRendererWidget final : public GraphicsWidget
{
  Q_OBJECT
public:
  explicit SoftwareRendererWidget(GraphicsWindow* parent);

signals:
  void BackendChanged(const QString& backend);

private:
  void LoadSettings() override;
  void SaveSettings() override;

  void CreateWidgets();
  void ConnectWidgets();
  void AddDescriptions();

  QComboBox* m_backend_combo;
  QCheckBox* m_show_statistics;
  QCheckBox* m_dump_textures;
  QCheckBox* m_dump_objects;
  QCheckBox* m_dump_tev_stages;
  QCheckBox* m_dump_tev_fetches;

  QSpinBox* m_object_range_min;
  QSpinBox* m_object_range_max;
};