Bullet Collision Detection & Physics Library
|
#include <btSoftBodySolverVertexBuffer_OpenGL.h>
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 } |
Definition at line 57 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
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.
|
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.
|
inlinevirtual |
Definition at line 142 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
inlinevirtual |
Definition at line 160 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
inlinevirtual |
Return the type of the vertex buffer descriptor.
Implements btVertexBufferDescriptor.
Definition at line 150 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
inlinevirtual |
Definition at line 155 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
protected |
OpenCL interop buffer.
Definition at line 67 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
protected |
OpenCL command queue.
Definition at line 64 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
protected |
OpenCL context.
Definition at line 61 of file btSoftBodySolverVertexBuffer_OpenGL.h.
|
protected |
VBO in GL that is the basis of the interop buffer.
Definition at line 70 of file btSoftBodySolverVertexBuffer_OpenGL.h.