WindowContext

OpenGL Window context implementation.

Overview

Typical use cases:

  • Defining OpenGL-specific window context implementations

Header

<RaeptorCogs/GAPI/GL/Core/Internal/WindowContext.hpp>

Metadata

Author

Estorc

Version

v1.0

Copyright

Copyright (c) 2025 Estorc MIT License.

Classes

Classes

Class

Description

RaeptorCogs::GAPI::GL::WindowContext

OpenGL Window context implementation.

class WindowContext : public RaeptorCogs::GAPI::Common::WindowContext

OpenGL Window context implementation.

Provides OpenGL-specific implementations for the window context interface.

Public Functions

inline WindowContext(Common::RendererBackend *renderer)

Default constructor.

virtual ~WindowContext() override = default

Virtual destructor.

virtual void initialize(Window *window) override

void buildVAO()

Build Vertex Array Object (VAO).

Note

Sets up the VAO for rendering.

GAPI::ObjectHandler<GAPI::Common::VertexArray> *getQuadVertexArray()

Get the quad vertex array for rendering.

Returns:

Pointer to the VertexArray object for the quad.

virtual void bind() override

Bind the window context for rendering.

Private Members

GAPI::ObjectHandler<GAPI::Common::VertexArray> quadVertexArray

Vertex array for rendering a quad.

Used for rendering operations involving a simple quad.