[Graphics] Improved support for external OpenGL contexts
authorthefiddler <stapostol@gmail.com>
Sat, 28 Dec 2013 00:14:59 +0000 (01:14 +0100)
committerthefiddler <stapostol@gmail.com>
Sat, 28 Dec 2013 00:14:59 +0000 (01:14 +0100)
commit04e6d9335a77a495a34f3ab168c849a918b518ae
treed3f354f303929daf265a6409b55800b201a931c2
parent5cebaccfca3c7f109610d6af0b335a97ac5cbe7e
[Graphics] Improved support for external OpenGL contexts

When combining OpenTK with a third-party OpenGL toolkit, it is now
possible to implement a suitable GetAddress() and GetCurrentContext()
implementation in terms of the third-party toolkit. If no
implementation is specified, then OpenTK will try to guess the most
suitable implementation within its own platform backends.

If no custom implementation is defined, and if no suitable
implementation can be found, then OpenTK will throw a
PlatformNotSupportedException. If a suitable implementation is found or
defined, then OpenTK will attempt to load OpenGL entry points using
that implementation.

In this case third-party toolkit remains solely responsible for
managing its context via its MakeCurrent(), SwapBuffers(), etc
implementations.
Source/OpenTK/Graphics/GraphicsContext.cs