18 #ifndef INCLUDED_GRAPHICS_OVERLAY 19 #define INCLUDED_GRAPHICS_OVERLAY 44 void PushCoords(
const float x,
const float y,
const float z)
46 m_Coords.push_back(x);
47 m_Coords.push_back(y);
48 m_Coords.push_back(z);
79 :
m_Thickness(1.0f), m_Closed(false), m_AlwaysVisible(false),
80 m_StartCapType(LINECAP_FLAT), m_EndCapType(LINECAP_FLAT), m_SimContext(NULL)
121 static LineCapType StrToLineCapType(
const std::wstring& str);
123 void PushCoords(
const float x,
const float z) { m_Coords.push_back(x); m_Coords.push_back(z); }
127 for (
size_t i = 0; i < points.size(); ++i)
168 #endif // INCLUDED_GRAPHICS_OVERLAY CTexturePtr m_TextureBase
Definition: Overlay.h:83
Line-based overlay, with world-space coordinates, rendered in the world potentially behind other obje...
Definition: Overlay.h:35
sharp point ending
Definition: Overlay.h:74
float X
Definition: Vector2D.h:157
void PushCoords(const float x, const float y, const float z)
Definition: Overlay.h:44
CColor m_Color
Definition: Overlay.h:163
void PushCoords(const float x, const float z)
Definition: Overlay.h:123
Definition: Vector3D.h:28
bool m_AlwaysVisible
Should this line be rendered fully visible at all times, even under the SoD?
Definition: Overlay.h:95
CColor m_Color
Definition: Overlay.h:154
Billboard sprite overlay, with world-space coordinates, rendered on top of all other objects...
Definition: Overlay.h:136
SOverlayTexturedLine()
Definition: Overlay.h:78
LineCapType m_EndCapType
Definition: Overlay.h:98
Contains pointers to various 'global' objects that are needed by the simulation code, to allow easy access without using real (evil) global variables.
Definition: SimContext.h:32
square end that extends half the line width beyond the line end
Definition: Overlay.h:75
uint8_t u8
Definition: types.h:37
CVector3D m_Position
Definition: Overlay.h:140
void PushCoords(const std::vector< CVector2D > &points)
Definition: Overlay.h:125
std::vector< float > m_Coords
Definition: Overlay.h:40
float m_Y1
Definition: Overlay.h:141
CTexturePtr m_Texture
Definition: Overlay.h:151
Textured line overlay, with world-space coordinates, rendered in the world onto the terrain...
Definition: Overlay.h:61
bool m_Closed
Should this line be treated as a closed loop? If set, any end cap settings are ignored.
Definition: Overlay.h:93
float X
Definition: Vector3D.h:31
Semi-circular line ending.
Definition: Overlay.h:73
void PushCoords(const CVector3D &v)
Definition: Overlay.h:43
float Y
Definition: Vector3D.h:31
SOverlaySphere()
Definition: Overlay.h:159
CColor m_Color
Color to apply to the line texture, where indicated by the mask.
Definition: Overlay.h:87
Rendering data for an STexturedOverlayLine.
Definition: TexturedLineRData.h:39
std::vector< float > m_Coords
(x, z) vertex coordinate pairs; y is computed automatically.
Definition: Overlay.h:89
CTexturePtr m_TextureMask
Definition: Overlay.h:84
CVector3D m_Center
Definition: Overlay.h:161
float Y
Definition: Vector2D.h:157
Definition: Vector2D.h:31
Rectangular single-quad terrain overlay, in world space coordinates.
Definition: Overlay.h:149
std::shared_ptr< CTexture > CTexturePtr
Definition: Texture.h:22
float m_Radius
Definition: Overlay.h:162
u8 m_Thickness
Definition: Overlay.h:41
no line ending; abrupt stop of the line (aka. butt ending)
Definition: Overlay.h:65
float Z
Definition: Vector3D.h:31
SOverlayLine()
Definition: Overlay.h:37
const CSimContext * m_SimContext
Simulation context applicable for this overlay line; used to obtain terrain information during automa...
Definition: Overlay.h:104
CTexturePtr m_Texture
Definition: Overlay.h:138
LineCapType m_StartCapType
Definition: Overlay.h:97
float m_Thickness
Half-width of the line, in world-space units.
Definition: Overlay.h:91
CColor m_Color
Definition: Overlay.h:39
void PushCoords(const CVector2D &v)
Definition: Overlay.h:124
LineCapType
Definition: Overlay.h:63
shared_ptr< CTexturedLineRData > m_RenderData
Cached renderer data, because expensive to compute.
Definition: Overlay.h:114
Definition: Overlay.h:157
CTexturePtr m_TextureMask
Definition: Overlay.h:152
CColor m_Color
Definition: Overlay.h:139