OpenCL C++ Wrapper API 1.1
 All Classes Namespaces Files Functions Variables Typedefs Defines
Public Member Functions
cl::Image2DGL Class Reference

2D image interface for GL interop. More...

#include <cl.hpp>

Inheritance diagram for cl::Image2DGL:
cl::Image2D cl::Image cl::Memory cl::detail::Wrapper< cl_mem >

List of all members.

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)
Image2DGLoperator= (const Image2DGL &rhs)
Image2DGLoperator= (const cl_mem &rhs)

Detailed Description

2D image interface for GL interop.

Definition at line 2398 of file cl.hpp.


Constructor & Destructor Documentation

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;
        }
    }

Definition at line 2424 of file cl.hpp.

: Image2D() { }
cl::Image2DGL::Image2DGL ( const Image2DGL image) [inline]

Definition at line 2426 of file cl.hpp.

: Image2D(image) { }
cl::Image2DGL::Image2DGL ( const cl_mem &  image) [inline]

Definition at line 2428 of file cl.hpp.

: Image2D(image) { }

Member Function Documentation

Image2DGL& cl::Image2DGL::operator= ( const Image2DGL rhs) [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;
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines