Class GLFWContext

Inheritance Relationships

Base Type

Class Documentation

class GLFWContext : public CE::Rendering::OpenGL::Context

Declaration: final

Adapts a display-owned GLFW window to the OpenGL presentation contract.

DisplaySystem owns GLFW and the window; this adapter borrows the window.

Public Functions

explicit GLFWContext(::CE::Platform::GLFW::Window &window, int swap_interval = 1)
virtual void make_current() override
virtual void release_current() override
virtual bool is_current() const override

Declaration: [[nodiscard]]

virtual ProcAddress proc_address(const char *name) const override

Declaration: [[nodiscard]]

virtual void present() override