mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Qt: Shader editor now works
This commit is contained in:
parent
d87477832b
commit
186fd3b94b
6 changed files with 63 additions and 35 deletions
|
@ -17,12 +17,11 @@ class ShaderEditorWindow : public QDialog {
|
|||
Zep::IZepReplProvider replProvider;
|
||||
static constexpr float fontSize = 14.0f;
|
||||
|
||||
// Whether this backend supports shader editor
|
||||
bool shaderEditorSupported = true;
|
||||
|
||||
public:
|
||||
// Whether this backend supports shader editor
|
||||
bool supported = true;
|
||||
|
||||
ShaderEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText);
|
||||
void setText(const std::string& text) { zepWidget.GetEditor().GetMRUBuffer()->SetText(text); }
|
||||
|
||||
void setEnable(bool enable);
|
||||
};
|
|
@ -92,6 +92,7 @@ class RendererGL final : public Renderer {
|
|||
// Note: The caller is responsible for deleting the currently bound FBO before calling this
|
||||
void setFBO(uint handle) { screenFramebuffer.m_handle = handle; }
|
||||
void resetStateManager() { gl.reset(); }
|
||||
void initUbershader(OpenGL::Program& program);
|
||||
|
||||
#ifdef PANDA3DS_FRONTEND_QT
|
||||
virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override { initGraphicsContextInternal(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue