Bullet Collision Detection & Physics Library
Public Member Functions | Protected Attributes | List of all members
btOpenGLInteropVertexBufferDescriptor Class Reference

#include <btSoftBodySolverVertexBuffer_OpenGL.h>

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

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. More...
 
 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. More...
 
virtual ~btOpenGLInteropVertexBufferDescriptor ()
 
virtual BufferTypes getBufferType () const
 Return the type of the vertex buffer descriptor. More...
 
virtual cl_context getContext () const
 
virtual cl_mem getBuffer () const
 
- Public Member Functions inherited from btVertexBufferDescriptor
 btVertexBufferDescriptor ()
 
virtual ~btVertexBufferDescriptor ()
 
virtual bool hasVertexPositions () const
 
virtual bool hasNormals () const
 
virtual int getVertexOffset () const
 Return the vertex offset in floats from the base pointer. More...
 
virtual int getVertexStride () const
 Return the vertex stride in number of floats between vertices. More...
 
virtual int getNormalOffset () const
 Return the vertex offset in floats from the base pointer. More...
 
virtual int getNormalStride () const
 Return the vertex stride in number of floats between vertices. More...
 

Protected Attributes

cl_context m_context
 OpenCL context. More...
 
cl_command_queue m_commandQueue
 OpenCL command queue. More...
 
cl_mem m_buffer
 OpenCL interop buffer. More...
 
GLuint m_openGLVBO
 VBO in GL that is the basis of the interop buffer. More...
 
- Protected Attributes inherited from btVertexBufferDescriptor
bool m_hasVertexPositions
 
bool m_hasNormals
 
int m_vertexOffset
 
int m_vertexStride
 
int m_normalOffset
 
int m_normalStride
 

Additional Inherited Members

- Public Types inherited from btVertexBufferDescriptor
enum  BufferTypes {
  CPU_BUFFER,
  DX11_BUFFER,
  OPENGL_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 ( )
inlinevirtual

Definition at line 142 of file btSoftBodySolverVertexBuffer_OpenGL.h.

Member Function Documentation

virtual cl_mem btOpenGLInteropVertexBufferDescriptor::getBuffer ( ) const
inlinevirtual

Definition at line 160 of file btSoftBodySolverVertexBuffer_OpenGL.h.

virtual BufferTypes btOpenGLInteropVertexBufferDescriptor::getBufferType ( ) const
inlinevirtual

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
inlinevirtual

Definition at line 155 of file btSoftBodySolverVertexBuffer_OpenGL.h.

Member Data Documentation

cl_mem btOpenGLInteropVertexBufferDescriptor::m_buffer
protected

OpenCL interop buffer.

Definition at line 67 of file btSoftBodySolverVertexBuffer_OpenGL.h.

cl_command_queue btOpenGLInteropVertexBufferDescriptor::m_commandQueue
protected

OpenCL command queue.

Definition at line 64 of file btSoftBodySolverVertexBuffer_OpenGL.h.

cl_context btOpenGLInteropVertexBufferDescriptor::m_context
protected

OpenCL context.

Definition at line 61 of file btSoftBodySolverVertexBuffer_OpenGL.h.

GLuint btOpenGLInteropVertexBufferDescriptor::m_openGLVBO
protected

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: