2D image interface for GL interop. More...
#include <cl.hpp>
Public Member Functions | |
Image2DGL (const Context &context, cl_mem_flags flags, GLenum target, GLint miplevel, GLuint texobj, cl_int *err=NULL) | |
Image2DGL () | |
Image2DGL (const Image2DGL &image) | |
Image2DGL (const cl_mem &image) | |
Image2DGL & | operator= (const Image2DGL &rhs) |
Image2DGL & | operator= (const cl_mem &rhs) |
cl::Image2DGL::Image2DGL | ( | const Context & | context, |
cl_mem_flags | flags, | ||
GLenum | target, | ||
GLint | miplevel, | ||
GLuint | texobj, | ||
cl_int * | err = NULL |
||
) | [inline] |
Definition at line 2401 of file cl.hpp.
{ cl_int error; object_ = ::clCreateFromGLTexture2D( context(), flags, target, miplevel, texobj, &error); detail::errHandler(error, __CREATE_GL_TEXTURE_2D_ERR); if (err != NULL) { *err = error; } }
cl::Image2DGL::Image2DGL | ( | ) | [inline] |
cl::Image2DGL::Image2DGL | ( | const Image2DGL & | image | ) | [inline] |
cl::Image2DGL::Image2DGL | ( | const cl_mem & | image | ) | [inline] |
Definition at line 2430 of file cl.hpp.
{ if (this != &rhs) { Image2D::operator=(rhs); } return *this; }
Image2DGL& cl::Image2DGL::operator= | ( | const cl_mem & | rhs | ) | [inline] |
Reimplemented from cl::Image2D.
Definition at line 2438 of file cl.hpp.
{ Image2D::operator=(rhs); return *this; }