Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function opengl_create_shared_context

boost::compute::opengl_create_shared_context

Synopsis

// In header: <boost/compute/interop/opengl/context.hpp>


context opengl_create_shared_context();

Description

Creates a shared OpenCL/OpenGL context for the currently active OpenGL context.

Once created, the shared context can be used to create OpenCL memory objects which can interact with OpenGL memory objects (e.g. VBOs).

Throws:

unsupported_extension_error if no CL-GL sharing capable devices are found.

PrevUpHomeNext