MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / Image3DGL

Method Image3DGL

include/internal/CL/cl.hpp:4343–4364  ·  view source on GitHub ↗

! \brief Constructs an Image3DGL in a specified context, from a given * GL Texture. * * Wraps clCreateFromGLTexture3D(). */

Source from the content-addressed store, hash-verified

4341 * Wraps clCreateFromGLTexture3D().
4342 */
4343 Image3DGL(
4344 const Context& context,
4345 cl_mem_flags flags,
4346 cl_GLenum target,
4347 cl_GLint miplevel,
4348 cl_GLuint texobj,
4349 cl_int * err = NULL)
4350 {
4351 cl_int error;
4352 object_ = ::clCreateFromGLTexture3D(
4353 context(),
4354 flags,
4355 target,
4356 miplevel,
4357 texobj,
4358 &error);
4359
4360 detail::errHandler(error, __CREATE_GL_TEXTURE_3D_ERR);
4361 if (err != NULL) {
4362 *err = error;
4363 }
4364 }
4365
4366 //! \brief Default constructor - initializes to NULL.
4367 Image3DGL() : Image3D() { }

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
Image3DClass · 0.85

Tested by

no test coverage detected