GLContext.this

Creates a new OpenGL rendering context.

  1. this(GdkGLContext* gdkGLContext, bool ownedRef)
  2. this(GLDrawableIF gldrawable, GLContext shareList, bool direct, int renderType)

Parameters

gldrawable GLDrawableIF

a #GdkGLDrawable.

shareList GLContext

the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place.

direct bool

whether rendering is to be done with a direct connection to the graphics system.

renderType int

GDK_GL_RGBA_TYPE.

Return: the new #GdkGLContext.

Throws

ConstructionException GTK+ fails to create the object.

Meta