Reference OpenGLContextCreate
Declared in Codebot.OpenGL.pas on line 4764
OpenGLContextCreate returns an OpenGL context given a window handle and a set of opengl parameters. If a conxtext could not be created, either due to an invalid window handle or unsupported parameter options, then nil is returned.
For OpenGLContextCreate to return a valid context the OpenGLInfo.IsValid must be return a value of True. See the note below for more details.
The context requests the version selected in render.inc. Desktop versions 3.2 and above request a core profile, or a compatibility profile when glcompat is defined. Embedded versions request an OpenGL ES profile and fall back to a desktop context providing the ES compatibility functions.
Desktop contexts have a vertex array object bound when first made current, so code written for OpenGL ES also works with core profiles.
function OpenGLContextCreate(Window: GLwindow; const Params: TOpenGLParams): IOpenGLContext;