16 #ifndef BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_OPENGL_H
17 #define BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_OPENGL_H
25 #include <OpenCL/OpenCL.h>
33 #ifdef _WIN32//for glut.h
38 #if defined(__APPLE__) && !defined (VMDMESA)
39 #include <OpenGL/OpenGL.h>
40 #include <OpenGL/gl.h>
41 #include <OpenGL/glu.h>
42 #include <GLUT/glut.h>
96 btAssert( 0 &&
"clEnqueueAcquireGLObjects(copySoftBodyToVertexBuffer)");
126 btAssert( 0 &&
"clEnqueueAcquireGLObjects(copySoftBodyToVertexBuffer)");
166 #endif // #ifndef BT_SOFT_BODY_SOLVER_VERTEX_BUFFER_OPENGL_H
struct _cl_context * cl_context
CL_API_ENTRY cl_int CL_API_CALL clReleaseMemObject(cl_mem) CL_API_SUFFIX__VERSION_1_0
virtual ~btOpenGLInteropVertexBufferDescriptor()
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.
bool m_hasVertexPositions
CL_API_ENTRY cl_mem CL_API_CALL clCreateFromGLBuffer(cl_context, cl_mem_flags, GLuint, int *) CL_API_SUFFIX__VERSION_1_0
virtual cl_mem getBuffer() const
#define CL_MEM_WRITE_ONLY
virtual cl_context getContext() const
cl_command_queue m_commandQueue
OpenCL command queue.
cl_mem m_buffer
OpenCL interop buffer.
virtual BufferTypes getBufferType() const
Return the type of the vertex buffer descriptor.
struct _cl_command_queue * cl_command_queue
cl_context m_context
OpenCL context.
GLuint m_openGLVBO
VBO in GL that is the basis of the interop buffer.