Skip to content

Transfer/Rebind OpenGL Context between Windows #530

Description

@Baedrick

This function seems to be missing from RGFW OpenGL context manipulation functions.

RGFWDEF void RGFW_window_setContext_OpenGL(RGFW_window* win, RGFW_glContext* ctx);

It would be useful for migrating the active context previously set up by bootstrapping some code when setting up a rendering backend. The implementation would be like this.

void RGFW_window_setContext_OpenGL(RGFW_window* win, RGFW_glContext* ctx) {
	win->src.ctx.native = ctx;
	win->src.gfxType = RGFW_gfxNativeOpenGL;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions