mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
Add some renderer related helper functions in emulator and renderergl
This commit is contained in:
parent
df3c90109b
commit
b5b94a3526
3 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue