glfwGetOSMesaColorBuffer

Retrieves the color buffer associated with the specified window.

version(GLFW_EXPOSE_NATIVE_OSMESA)
export extern (C) @nogc nothrow __gshared
int
glfwGetOSMesaColorBuffer
(
GLFWwindow* window
,
int* width
,
int* height
,
int* format
,
void** buffer
)

Parameters

window GLFWwindow*

The window whose color buffer to retrieve.

width int*

Where to store the width of the color buffer, or null.

height int*

Where to store the height of the color buffer, or null.

format int*

Where to store the OSMesa pixel format of the color buffer, or null.

buffer void**

Where to store the address of the color buffer, or null.

Return Value

Type: int

GLFW_TRUE if successful, or GLFW_FALSE if an error occurred.

Thread Safety

This function may be called from any thread. Access is not synchronized.

Meta

Since

Added in version 3.3.

Ingroup: native