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

Class to manage movement of data from a solver to a given target. More...

#include <btSoftBodySolverOutputCLtoGL.h>

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

Public Member Functions

 btSoftBodySolverOutputCLtoGL (cl_command_queue cqCommandQue, cl_context cxMainContext)
 
virtual ~btSoftBodySolverOutputCLtoGL ()
 
virtual void copySoftBodyToVertexBuffer (const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer)
 Output current computed vertex data to the vertex buffers for all cloths in the solver. More...
 
- Public Member Functions inherited from btSoftBodySolverOutput
 btSoftBodySolverOutput ()
 
virtual ~btSoftBodySolverOutput ()
 

Protected Member Functions

virtual bool checkInitialized ()
 
virtual bool buildShaders ()
 
void releaseKernels ()
 

Protected Attributes

cl_command_queue m_cqCommandQue
 
cl_context m_cxMainContext
 
CLFunctions clFunctions
 
cl_kernel outputToVertexArrayWithNormalsKernel
 
cl_kernel outputToVertexArrayWithoutNormalsKernel
 
bool m_shadersInitialized
 

Detailed Description

Class to manage movement of data from a solver to a given target.

This version is the CL to GL interop version.

Definition at line 25 of file btSoftBodySolverOutputCLtoGL.h.

Constructor & Destructor Documentation

btSoftBodySolverOutputCLtoGL::btSoftBodySolverOutputCLtoGL ( cl_command_queue  cqCommandQue,
cl_context  cxMainContext 
)
inline

Definition at line 41 of file btSoftBodySolverOutputCLtoGL.h.

virtual btSoftBodySolverOutputCLtoGL::~btSoftBodySolverOutputCLtoGL ( )
inlinevirtual

Definition at line 51 of file btSoftBodySolverOutputCLtoGL.h.

Member Function Documentation

bool btSoftBodySolverOutputCLtoGL::buildShaders ( )
protectedvirtual

Definition at line 91 of file btSoftBodySolverOutputCLtoGL.cpp.

bool btSoftBodySolverOutputCLtoGL::checkInitialized ( )
protectedvirtual

Definition at line 119 of file btSoftBodySolverOutputCLtoGL.cpp.

void btSoftBodySolverOutputCLtoGL::copySoftBodyToVertexBuffer ( const btSoftBody *const  softBody,
btVertexBufferDescriptor vertexBuffer 
)
virtual

Output current computed vertex data to the vertex buffers for all cloths in the solver.

Implements btSoftBodySolverOutput.

Definition at line 18 of file btSoftBodySolverOutputCLtoGL.cpp.

void btSoftBodySolverOutputCLtoGL::releaseKernels ( )
protected

Definition at line 111 of file btSoftBodySolverOutputCLtoGL.cpp.

Member Data Documentation

CLFunctions btSoftBodySolverOutputCLtoGL::clFunctions
protected

Definition at line 30 of file btSoftBodySolverOutputCLtoGL.h.

cl_command_queue btSoftBodySolverOutputCLtoGL::m_cqCommandQue
protected

Definition at line 28 of file btSoftBodySolverOutputCLtoGL.h.

cl_context btSoftBodySolverOutputCLtoGL::m_cxMainContext
protected

Definition at line 29 of file btSoftBodySolverOutputCLtoGL.h.

bool btSoftBodySolverOutputCLtoGL::m_shadersInitialized
protected

Definition at line 35 of file btSoftBodySolverOutputCLtoGL.h.

cl_kernel btSoftBodySolverOutputCLtoGL::outputToVertexArrayWithNormalsKernel
protected

Definition at line 32 of file btSoftBodySolverOutputCLtoGL.h.

cl_kernel btSoftBodySolverOutputCLtoGL::outputToVertexArrayWithoutNormalsKernel
protected

Definition at line 33 of file btSoftBodySolverOutputCLtoGL.h.


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