OpenGlRenderContext

data class OpenGlRenderContext(val directContext: DirectContext, val eglDisplay: Long, val eglConfig: Long, val eglContext: Long, val getProcAddress: Long, val resolveProcAddress: (String) -> Long, val makeCurrent: () -> Unit) : RenderContext(source)

OpenGL render context for a Compose GLFW window.

Native handles are borrowed from the host window and remain valid only until that window is closed or recreated. Do not close or release them from user code.

Constructors

Link copied to clipboard
constructor(directContext: DirectContext, eglDisplay: Long, eglConfig: Long, eglContext: Long, getProcAddress: Long, resolveProcAddress: (String) -> Long, makeCurrent: () -> Unit)

Properties

Link copied to clipboard
val directContext: DirectContext

Skia direct context used by Compose for this window.

Link copied to clipboard

EGL config handle for the window context.

Link copied to clipboard

EGL context handle used to render this window.

Link copied to clipboard

EGL display handle for the window context.

Link copied to clipboard

Raw GLFW glfwGetProcAddress function pointer.

Link copied to clipboard
val makeCurrent: () -> Unit

Makes this window's OpenGL context current on the calling thread.

Link copied to clipboard

Resolves an OpenGL procedure name to a function pointer.