summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GraphicsPane.h
blob: ffc55600ca8131de67a6a1dbd9ec594c59071c4c (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
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <QWidget>

class MainWindow;

namespace Config
{
class Layer;
}  // namespace Config

class GraphicsPane final : public QWidget
{
  Q_OBJECT
public:
  explicit GraphicsPane(MainWindow* main_window, Config::Layer* config_layer);

  Config::Layer* GetConfigLayer();

signals:
  void BackendChanged(const QString& backend);
  void UseFastTextureSamplingChanged();
  void UseGPUTextureDecodingChanged();

private:
  void CreateMainLayout();
  void OnBackendChanged(const QString& backend);

  MainWindow* const m_main_window;
  Config::Layer* const m_config_layer;
};