Blender V2.61 - r43446
Public Types | Public Member Functions | Protected Attributes

btVertexBufferDescriptor Class Reference

#include <btSoftBodySolverVertexBuffer.h>

Inheritance diagram for btVertexBufferDescriptor:
Inheritance graph
[legend]

List of all members.

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
virtual int getVertexOffset () const
virtual int getVertexStride () const
virtual int getNormalOffset () const
virtual int getNormalStride () const

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]
virtual btVertexBufferDescriptor::~btVertexBufferDescriptor ( ) [inline, virtual]

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.

Referenced by btDefaultSoftBodySolver::copySoftBodyToVertexBuffer().

virtual int btVertexBufferDescriptor::getNormalOffset ( ) const [inline, virtual]

Return the vertex offset in floats from the base pointer.

Definition at line 91 of file btSoftBodySolverVertexBuffer.h.

References m_normalOffset.

Referenced by btDefaultSoftBodySolver::copySoftBodyToVertexBuffer().

virtual int btVertexBufferDescriptor::getNormalStride ( ) const [inline, virtual]

Return the vertex stride in number of floats between vertices.

Definition at line 99 of file btSoftBodySolverVertexBuffer.h.

References m_normalStride.

Referenced by btDefaultSoftBodySolver::copySoftBodyToVertexBuffer().

virtual int btVertexBufferDescriptor::getVertexOffset ( ) const [inline, virtual]

Return the vertex offset in floats from the base pointer.

Definition at line 75 of file btSoftBodySolverVertexBuffer.h.

References m_vertexOffset.

Referenced by btDefaultSoftBodySolver::copySoftBodyToVertexBuffer().

virtual int btVertexBufferDescriptor::getVertexStride ( ) const [inline, virtual]

Return the vertex stride in number of floats between vertices.

Definition at line 83 of file btSoftBodySolverVertexBuffer.h.

References m_vertexStride.

Referenced by btDefaultSoftBodySolver::copySoftBodyToVertexBuffer().

virtual bool btVertexBufferDescriptor::hasNormals ( ) const [inline, virtual]
virtual bool btVertexBufferDescriptor::hasVertexPositions ( ) const [inline, virtual]

Member Data Documentation


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