56class cCollisionRecorder;
57struct cCollisionSettings;
181 const unsigned int a_vertexNumber)
const
Implements general geometry utility functions.
Implements an array of 3D vertices.
This class implements a collision detection recorder that stores all collision events that are report...
Definition CCollisionBasics.h:186
This class implements an abstract class for describing geometrical elements composed of vertices.
Definition CGenericArray.h:91
GLuint m_elementBuffer
OpenGL Buffer for storing elements.
Definition CGenericArray.h:249
virtual bool computeCollision(const unsigned int a_elementIndex, cGenericObject *a_object, cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings) const
This method checks if the given line segment intersects a selected element from this array.
Definition CGenericArray.h:212
virtual void clear()
This method clear all elements of array.
Definition CGenericArray.h:124
cVertexArrayPtr m_vertices
Vertex array that contains all vertices used to describe the elements of this array.
Definition CGenericArray.h:227
static cGenericArrayPtr create(cVertexArrayPtr a_vertexArray)
Shared cGenericArray allocator.
Definition CGenericArray.h:135
std::list< unsigned int > m_freeElements
List of free elements.
Definition CGenericArray.h:259
virtual unsigned int getNumVerticesPerElement()
This method returns the number of vertices per element.
Definition CGenericArray.h:148
bool m_flagMarkForResize
If true then element array size has changed.
Definition CGenericArray.h:239
virtual void render()
This method render the OpenGL vertex buffer object.
Definition CGenericArray.h:207
bool m_flagMarkForUpdate
If true then element data has been modified.
Definition CGenericArray.h:236
virtual unsigned int getVertexIndex(const unsigned int a_elementIndex, const unsigned int a_vertexNumber) const
Definition CGenericArray.h:180
cVector3d getTexCoordAtPosition(const unsigned int a_elementIndex, const cVector3d &a_localPos)
Definition CGenericArray.h:198
bool getAllocated(const unsigned int a_index) const
Definition CGenericArray.h:161
virtual ~cGenericArray()
Definition CGenericArray.h:120
cGenericArray(cVertexArrayPtr a_vertexArray)
Definition CGenericArray.h:105
virtual unsigned int getNumElements()
This method returns the number of allocated elements.
Definition CGenericArray.h:145
std::vector< unsigned int > m_indices
Element indices to vertices.
Definition CGenericArray.h:230
void compress()
This method removes non used elements. This compresses the array.
std::vector< bool > m_allocated
Element allocation flags.
Definition CGenericArray.h:233
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
Definition CAudioBuffer.cpp:57
std::shared_ptr< cGenericArray > cGenericArrayPtr
Definition CGenericArray.h:71
std::shared_ptr< cVertexArray > cVertexArrayPtr
Definition CVertexArray.h:108
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition CCollisionBasics.h:243
This class implements a 3D vector.
Definition CVector3d.h:89