Bullet Collision Detection & Physics Library
Public Types | Public Member Functions | Protected Attributes | List of all members
btVertexBufferDescriptor Class Referenceabstract

#include <btSoftBodySolverVertexBuffer.h>

Inheritance diagram for btVertexBufferDescriptor:
Inheritance graph
[legend]

Public Types

enum  BufferTypes {
  CPU_BUFFER,
  DX11_BUFFER,
  OPENGL_BUFFER
}
 

Public Member Functions

 btVertexBufferDescriptor ()
 
virtual ~btVertexBufferDescriptor ()
 
virtual bool hasVertexPositions () const
 
virtual bool hasNormals () const
 
virtual BufferTypes getBufferType () const =0
 Return the type of the vertex buffer descriptor. More...
 
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

bool m_hasVertexPositions
 
bool m_hasNormals
 
int m_vertexOffset
 
int m_vertexStride
 
int m_normalOffset
 
int m_normalStride
 

Detailed Description

Definition at line 20 of file btSoftBodySolverVertexBuffer.h.

Member Enumeration Documentation

Enumerator
CPU_BUFFER 
DX11_BUFFER 
OPENGL_BUFFER 

Definition at line 23 of file btSoftBodySolverVertexBuffer.h.

Constructor & Destructor Documentation

btVertexBufferDescriptor::btVertexBufferDescriptor ( )
inline

Definition at line 42 of file btSoftBodySolverVertexBuffer.h.

virtual btVertexBufferDescriptor::~btVertexBufferDescriptor ( )
inlinevirtual

Definition at line 52 of file btSoftBodySolverVertexBuffer.h.

Member Function Documentation

virtual BufferTypes btVertexBufferDescriptor::getBufferType ( ) const
pure virtual

Return the type of the vertex buffer descriptor.

Implemented in btCPUVertexBufferDescriptor, btOpenGLInteropVertexBufferDescriptor, and btDX11VertexBufferDescriptor.

virtual int btVertexBufferDescriptor::getNormalOffset ( ) const
inlinevirtual

Return the vertex offset in floats from the base pointer.

Definition at line 91 of file btSoftBodySolverVertexBuffer.h.

virtual int btVertexBufferDescriptor::getNormalStride ( ) const
inlinevirtual

Return the vertex stride in number of floats between vertices.

Definition at line 99 of file btSoftBodySolverVertexBuffer.h.

virtual int btVertexBufferDescriptor::getVertexOffset ( ) const
inlinevirtual

Return the vertex offset in floats from the base pointer.

Definition at line 75 of file btSoftBodySolverVertexBuffer.h.

virtual int btVertexBufferDescriptor::getVertexStride ( ) const
inlinevirtual

Return the vertex stride in number of floats between vertices.

Definition at line 83 of file btSoftBodySolverVertexBuffer.h.

virtual bool btVertexBufferDescriptor::hasNormals ( ) const
inlinevirtual

Definition at line 62 of file btSoftBodySolverVertexBuffer.h.

virtual bool btVertexBufferDescriptor::hasVertexPositions ( ) const
inlinevirtual

Definition at line 57 of file btSoftBodySolverVertexBuffer.h.

Member Data Documentation

bool btVertexBufferDescriptor::m_hasNormals
protected

Definition at line 33 of file btSoftBodySolverVertexBuffer.h.

bool btVertexBufferDescriptor::m_hasVertexPositions
protected

Definition at line 32 of file btSoftBodySolverVertexBuffer.h.

int btVertexBufferDescriptor::m_normalOffset
protected

Definition at line 38 of file btSoftBodySolverVertexBuffer.h.

int btVertexBufferDescriptor::m_normalStride
protected

Definition at line 39 of file btSoftBodySolverVertexBuffer.h.

int btVertexBufferDescriptor::m_vertexOffset
protected

Definition at line 35 of file btSoftBodySolverVertexBuffer.h.

int btVertexBufferDescriptor::m_vertexStride
protected

Definition at line 36 of file btSoftBodySolverVertexBuffer.h.


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