This call will create an OpenGL context using the given visual config. A visual config specifies what framebuffer resources are available to the rendering context. If an OpenGL context was successfully created, a handle to it will be returned, else NULL will be returned.

#include <pgl.h>

HAB              hab;
PVISUALCONFIG    pVisualConfig;
HGC              ShareList;
BOOL             IsDirect;
HGC              hgc;

hgc = pglCreateContext(hab, pVisualConfig,
        ShareList, IsDirect);


[Back: pglCreateContext]
[Next: pglCreateContext Parameter - hab]