void CreateLineCap(const SOverlayTexturedLine &line, const CVector3D &corner1, const CVector3D &corner2, const CVector3D &normal, SOverlayTexturedLine::LineCapType endCapType, std::vector< SVertex > &verticesOut, std::vector< u16 > &indicesOut)
Creates a line cap of the specified type endCapType at the end of the segment going in direction norm...
CVector3D Centroid(const SVertex &v1, const SVertex &v2)
Small utility function; grabs the centroid of the positions of two vertices.
cassert(sizeof(SVertex)==32)
Textured line overlay, with world-space coordinates, rendered in the world onto the terrain...
CVertexBuffer::VBChunk * m_VB
Rendering data for an STexturedOverlayLine.
void Update(const SOverlayTexturedLine &line)
void Render(const SOverlayTexturedLine &line, const CShaderProgramPtr &shader)
NONCOPYABLE(CTexturedLineRData)
CVertexBuffer::VBChunk * m_VBIndices
SVertex(CVector3D pos, float u, float v)