18#ifndef INCLUDED_TEXTUREDLINERDATA
19#define INCLUDED_TEXTUREDLINERDATA
Definition: BoundingBoxAligned.h:34
Definition: RenderableObject.h:41
Rendering data for an STexturedOverlayLine.
Definition: TexturedLineRData.h:45
void Update(const SOverlayTexturedLine &line)
Definition: TexturedLineRData.cpp:93
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...
Definition: TexturedLineRData.cpp:354
CVertexBufferManager::Handle m_VBIndices
Definition: TexturedLineRData.h:95
CVertexBufferManager::Handle m_VB
Definition: TexturedLineRData.h:94
NONCOPYABLE(CTexturedLineRData)
CVector3D Centroid(const SVertex &v1, const SVertex &v2)
Small utility function; grabs the centroid of the positions of two vertices.
Definition: TexturedLineRData.h:89
static Renderer::Backend::IVertexInputLayout * GetVertexInputLayout()
Definition: TexturedLineRData.cpp:39
CBoundingBoxAligned m_BoundingBox
Definition: TexturedLineRData.h:96
cassert(sizeof(SVertex)==32)
bool IsVisibleInFrustum(const CFrustum &frustum) const
Definition: TexturedLineRData.cpp:473
void Render(Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IVertexInputLayout *vertexInputLayout, const SOverlayTexturedLine &line, Renderer::Backend::IShaderProgram *shader)
Definition: TexturedLineRData.cpp:59
CTexturedLineRData()=default
~CTexturedLineRData()=default
Definition: Vector2D.h:32
Definition: Vector3D.h:31
Definition: VertexBufferManager.h:49
Definition: IDeviceCommandContext.h:42
IShaderProgram is a container for multiple shaders of different types.
Definition: IShaderProgram.h:81
Definition: TexturedLineRData.h:66
CVector3D m_Position
Definition: TexturedLineRData.h:68
SVertex(const CVector3D &pos, const CVector2D &uv)
Definition: TexturedLineRData.h:67
CVector2D m_UV
Definition: TexturedLineRData.h:69
float padding[3]
Definition: TexturedLineRData.h:70
Textured line overlay, with world-space coordinates, rendered in the world onto the terrain.
Definition: Overlay.h:66
LineCapType
Definition: Overlay.h:68