Add some renderer related helper functions in emulator and renderergl

This commit is contained in:
offtkp 2023-10-20 02:59:53 +03:00
parent df3c90109b
commit b5b94a3526
3 changed files with 7 additions and 0 deletions

View file

@ -84,6 +84,10 @@ class RendererGL final : public Renderer {
std::optional<ColourBuffer> getColourBuffer(u32 addr, PICA::ColorFmt format, u32 width, u32 height, bool createIfnotFound = true);
// 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(); }
#ifdef PANDA3DS_FRONTEND_QT
virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override { initGraphicsContextInternal(); }
#endif