GLContext.copy

Copy state from src rendering context to glcontext.

mask contains the bitwise-OR of the same symbolic names that are passed to the glPushAttrib() function. You can use GL_ALL_ATTRIB_BITS to copy all the rendering state information.

class GLContext
bool
copy

Parameters

src GLContext

the source context.

mask ulong

which portions of src state are to be copied to glcontext.

Return: FALSE if it fails, TRUE otherwise.