mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Make the post shader list more editable
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "Common/UI/View.h"
|
||||
#include "Common/UI/ViewGroup.h"
|
||||
#include "GPU/Common/PostShader.h"
|
||||
|
||||
#include "MiscScreens.h"
|
||||
|
||||
class DisplayLayoutScreen : public UIDialogScreenWithGameBackground {
|
||||
@@ -45,4 +47,23 @@ private:
|
||||
UI::ChoiceStrip *mode_ = nullptr;
|
||||
UI::Choice *postProcChoice_ = nullptr;
|
||||
std::string shaderNames_[256];
|
||||
std::vector<bool> settingsVisible_;
|
||||
};
|
||||
|
||||
class PostProcScreen : public ListPopupScreen {
|
||||
public:
|
||||
PostProcScreen(const std::string &title, int id, bool showStereoShaders)
|
||||
: ListPopupScreen(title), id_(id), showStereoShaders_(showStereoShaders) { }
|
||||
|
||||
void CreateViews() override;
|
||||
|
||||
const char *tag() const override { return "PostProc"; }
|
||||
|
||||
private:
|
||||
void OnCompleted(DialogResult result) override;
|
||||
bool ShowButtons() const override { return true; }
|
||||
std::vector<ShaderInfo> shaders_;
|
||||
int id_;
|
||||
bool showStereoShaders_;
|
||||
std::vector<int> indexTranslation_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user