void setFramebufferBinding(FramebufferID fbo)
bool implicitFramebufferBound()
Returns true when assumed framebuffer binding hasn't changed from the implicit binding.
~RendererBackend() override
virtual ProcAddress getExtensionFunctionPointer(const char *)=0
void assumeViewport(int32_t x, int32_t y, const Size &)
std::unique_ptr< gfx::Context > createContext() override
void assumeFramebufferBinding(FramebufferID fbo)
void assumeScissorTest(bool)
RendererBackend(gfx::ContextMode)
PremultipliedImage readFramebuffer(const Size &)
Reads the color pixel data from the currently bound framebuffer.
void setScissorTest(bool)
virtual void updateAssumedState()=0
Called prior to rendering to update the internally assumed OpenGL state.
void setViewport(int32_t x, int32_t y, const Size &)
static constexpr const FramebufferID ImplicitFramebufferBinding
A constant to signal that a framebuffer is bound, but with an unknown ID.
std::enable_if_t< std::is_integral_v< T >, T > max(T a, T b)