#include <Mesh2d.h>
Public Member Functions | |
void | AddVertex (cVector2f avPos, cVector2f avTexCoord=0, cColor aCol=1) |
void | AddIndex (unsigned int alIndex) |
void | AddEdgeIndex (unsigned int alIndex) |
void | CreateVertexVec () |
void | CreateTileVertexVec () |
tVertexVec * | GetVertexVec (const cRect2f &aImageRect, cVector2f avSize, eTileRotation aRotation=eTileRotation_0) |
tUIntVec * | GetIndexVec () |
tMesh2DEdgeVec * | GetEdgeVec (eTileRotation aRotation=eTileRotation_0) |
bool | PointIsInside (const cVector2f &avPoint, const cVector2f &avMeshPos, eTileRotation aRotation=eTileRotation_0) |
cCollisionMesh2D * | CreateCollisonMesh (const cVector2f &avPos, const cVector2f &avSizeMul, eTileRotation aRotation=eTileRotation_0) |
Mesh2D is stores meshes used by 2d objects for collision and drawing.
bool hpl::cMesh2D::PointIsInside | ( | const cVector2f & | avPoint, |
const cVector2f & | avMeshPos, | ||
eTileRotation | aRotation = eTileRotation_0 |
||
) |
Checks if a point is inside the mesh. Only works on convex edge meshes.
avPoint | |
avMeshPos | |
aRotation |