Public Member Functions | Protected Attributes

btOpenGLInteropVertexBufferDescriptor Class Reference

#include <btSoftBodySolverVertexBuffer_OpenGL.h>

Inheritance diagram for btOpenGLInteropVertexBufferDescriptor:
Inheritance graph
[legend]
Collaboration diagram for btOpenGLInteropVertexBufferDescriptor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 btOpenGLInteropVertexBufferDescriptor (cl_command_queue cqCommandQue, cl_context context, GLuint openGLVBO, int vertexOffset, int vertexStride)
 context is the OpenCL context this interop buffer will work in.
 btOpenGLInteropVertexBufferDescriptor (cl_command_queue cqCommandQue, cl_context context, GLuint openGLVBO, int vertexOffset, int vertexStride, int normalOffset, int normalStride)
 context is the OpenCL context this interop buffer will work in.
virtual ~btOpenGLInteropVertexBufferDescriptor ()
virtual BufferTypes getBufferType () const
 Return the type of the vertex buffer descriptor.
virtual cl_context getContext () const
virtual cl_mem getBuffer () const

Protected Attributes

cl_context m_context
 OpenCL context.
cl_command_queue m_commandQueue
 OpenCL command queue.
cl_mem m_buffer
 OpenCL interop buffer.
GLuint m_openGLVBO
 VBO in GL that is the basis of the interop buffer.

Detailed Description

Definition at line 57 of file btSoftBodySolverVertexBuffer_OpenGL.h.


Constructor & Destructor Documentation

btOpenGLInteropVertexBufferDescriptor::btOpenGLInteropVertexBufferDescriptor ( cl_command_queue  cqCommandQue,
cl_context  context,
GLuint  openGLVBO,
int  vertexOffset,
int  vertexStride 
) [inline]

context is the OpenCL context this interop buffer will work in.

queue is the command queue that kernels and data movement will be enqueued into. openGLVBO is the OpenGL vertex buffer data will be copied into. vertexOffset is the offset in floats to the first vertex. vertexStride is the stride in floats between vertices.

Definition at line 81 of file btSoftBodySolverVertexBuffer_OpenGL.h.

btOpenGLInteropVertexBufferDescriptor::btOpenGLInteropVertexBufferDescriptor ( cl_command_queue  cqCommandQue,
cl_context  context,
GLuint  openGLVBO,
int  vertexOffset,
int  vertexStride,
int  normalOffset,
int  normalStride 
) [inline]

context is the OpenCL context this interop buffer will work in.

queue is the command queue that kernels and data movement will be enqueued into. openGLVBO is the OpenGL vertex buffer data will be copied into. vertexOffset is the offset in floats to the first vertex. vertexStride is the stride in floats between vertices. normalOffset is the offset in floats to the first normal. normalStride is the stride in floats between normals.

Definition at line 114 of file btSoftBodySolverVertexBuffer_OpenGL.h.

virtual btOpenGLInteropVertexBufferDescriptor::~btOpenGLInteropVertexBufferDescriptor (  )  [inline, virtual]

Definition at line 142 of file btSoftBodySolverVertexBuffer_OpenGL.h.


Member Function Documentation

virtual cl_mem btOpenGLInteropVertexBufferDescriptor::getBuffer (  )  const [inline, virtual]

Definition at line 160 of file btSoftBodySolverVertexBuffer_OpenGL.h.

virtual BufferTypes btOpenGLInteropVertexBufferDescriptor::getBufferType (  )  const [inline, virtual]

Return the type of the vertex buffer descriptor.

Implements btVertexBufferDescriptor.

Definition at line 150 of file btSoftBodySolverVertexBuffer_OpenGL.h.

virtual cl_context btOpenGLInteropVertexBufferDescriptor::getContext (  )  const [inline, virtual]

Definition at line 155 of file btSoftBodySolverVertexBuffer_OpenGL.h.


Member Data Documentation

OpenCL interop buffer.

Definition at line 67 of file btSoftBodySolverVertexBuffer_OpenGL.h.

OpenCL command queue.

Definition at line 64 of file btSoftBodySolverVertexBuffer_OpenGL.h.

OpenCL context.

Definition at line 61 of file btSoftBodySolverVertexBuffer_OpenGL.h.

VBO in GL that is the basis of the interop buffer.

Definition at line 70 of file btSoftBodySolverVertexBuffer_OpenGL.h.


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