Add Renderer::deinitGraphicsContext

This commit is contained in:
wheremyfoodat 2023-10-25 22:46:45 +03:00
parent 1313f46ba4
commit e900e9d614
11 changed files with 31 additions and 1 deletions

View file

@ -62,6 +62,9 @@ class Renderer {
virtual void drawVertices(PICA::PrimType primType, std::span<const PICA::Vertex> vertices) = 0; // Draw the given vertices
virtual void screenshot(const std::string& name) = 0;
// Some frontends and platforms may require that we delete our GL or misc context and obtain a new one for things like exclusive fullscreen
// This function does things like write back or cache necessary state before we delete our context
virtual void deinitGraphicsContext() = 0;
// Functions for initializing the graphics context for the Qt frontend, where we don't have the convenience of SDL_Window
#ifdef PANDA3DS_FRONTEND_QT