Method
HsCorecreate_gl_context
Declaration [src]
HsGLContext*
hs_core_create_gl_context (
HsCore* self,
HsGLAPI api,
int major_version,
int minor_version,
HsGLFlags flags
)
Description [src]
Creates an OpenGL context for self.
The context will use the provided API and version.
The context must be realized before use, using hs_gl_context_realize().
realize() can fail, for example if the requested API and/or version is
not available.
Return value
Type: HsGLContext
A newly created OpenGL context.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |