Method
GdkWindowcreate_gl_context
since: 3.16
Declaration [src]
GdkGLContext*
gdk_window_create_gl_context (
GdkWindow* window
GError** error
)
Description [src]
Creates a new GdkGLContext matching the
framebuffer format to the visual of the GdkWindow. The context
is disconnected from any particular window or surface.
If the creation of the GdkGLContext failed, error will be set.
Before using the returned GdkGLContext, you will need to
call gdk_gl_context_make_current() or gdk_gl_context_realize().
Available since: 3.16
Return value
Type: GdkGLContext
The newly created GdkGLContext, or
NULL on error.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |