Virtual Method

HsGLContextrealize

Declaration [src]

gboolean
realize (
  HsGLContext* self
  GError** error
)

Description [src]

Initializes GL resources for self.

HS_GL_CONTEXT_ERROR_INCOMPATIBLE_VERSION will be returned if the core requested an unavailable version. If this happens, the core should dispose self and try to create a context for a lower version, or otherwise fall back to software rendering or fail entirely.

Frontend is responsible for automatically unrealizing the context if an error happens here.

Return value

Type: gboolean

TRUE is self was successfully realized, FALSE on error.