ASL  0.1.7
Advanced Simulation Library
Public Member Functions | List of all members
cl::BufferRenderGL Class Reference

Class interface for GL Render Buffer Memory Objects. More...

#include <cl.hpp>

Inheritance diagram for cl::BufferRenderGL:
Inheritance graph
[legend]
Collaboration diagram for cl::BufferRenderGL:
Collaboration graph
[legend]

Public Member Functions

 BufferRenderGL (const Context &context, cl_mem_flags flags, cl_GLuint bufobj, cl_int *err=NULL)
 Constructs a BufferRenderGL in a specified context, from a given GL Renderbuffer. More...
 
 BufferRenderGL ()
 Default constructor - initializes to NULL. More...
 
__CL_EXPLICIT_CONSTRUCTORS BufferRenderGL (const cl_mem &buffer)
 Constructor from cl_mem - takes ownership. More...
 
BufferRenderGLoperator= (const cl_mem &rhs)
 Assignment from cl_mem - performs shallow copy. More...
 
 BufferRenderGL (const BufferRenderGL &buf)
 Copy constructor to forward copy to the superclass correctly. Required for MSVC. More...
 
BufferRenderGLoperator= (const BufferRenderGL &rhs)
 Copy assignment to forward copy to the superclass correctly. Required for MSVC. More...
 
cl_int getObjectInfo (cl_gl_object_type *type, cl_GLuint *gl_object_name)
 Wrapper for clGetGLObjectInfo(). More...
 

Detailed Description

Class interface for GL Render Buffer Memory Objects.

This is provided to facilitate interoperability with OpenGL.

See Memory for details about copy semantics, etc.

See also
Memory

Definition at line 4372 of file cl.hpp.

Constructor & Destructor Documentation

◆ BufferRenderGL() [1/4]

cl::BufferRenderGL::BufferRenderGL ( const Context context,
cl_mem_flags  flags,
cl_GLuint  bufobj,
cl_int *  err = NULL 
)
inline

Constructs a BufferRenderGL in a specified context, from a given GL Renderbuffer.

Wraps clCreateFromGLRenderbuffer().

Definition at line 4385 of file cl.hpp.

◆ BufferRenderGL() [2/4]

cl::BufferRenderGL::BufferRenderGL ( )
inline

Default constructor - initializes to NULL.

Definition at line 4408 of file cl.hpp.

◆ BufferRenderGL() [3/4]

__CL_EXPLICIT_CONSTRUCTORS cl::BufferRenderGL::BufferRenderGL ( const cl_mem &  buffer)
inline

Constructor from cl_mem - takes ownership.

See Memory for further details.

Definition at line 4418 of file cl.hpp.

◆ BufferRenderGL() [4/4]

cl::BufferRenderGL::BufferRenderGL ( const BufferRenderGL buf)
inline

Copy constructor to forward copy to the superclass correctly. Required for MSVC.

Definition at line 4443 of file cl.hpp.

Member Function Documentation

◆ getObjectInfo()

cl_int cl::BufferRenderGL::getObjectInfo ( cl_gl_object_type *  type,
cl_GLuint *  gl_object_name 
)
inline

Wrapper for clGetGLObjectInfo().

Definition at line 4486 of file cl.hpp.

◆ operator=() [1/2]

BufferRenderGL& cl::BufferRenderGL::operator= ( const cl_mem &  rhs)
inline

Assignment from cl_mem - performs shallow copy.

See Memory for further details.

Definition at line 4426 of file cl.hpp.

◆ operator=() [2/2]

BufferRenderGL& cl::BufferRenderGL::operator= ( const BufferRenderGL rhs)
inline

Copy assignment to forward copy to the superclass correctly. Required for MSVC.

Definition at line 4449 of file cl.hpp.


The documentation for this class was generated from the following file: