18#ifndef INCLUDED_GRAPHICS_OVERLAY
19#define INCLUDED_GRAPHICS_OVERLAY
53 void PushCoords(
const float x,
const float y,
const float z)
EOverlayType
Definition: Overlay.h:181
@ STATIC_OUTLINE
A more complex textured line overlay, composed of several textured line segments.
Definition: Overlay.h:185
@ DYNAMIC_QUAD
A single textured quad overlay, intended for entities that move around much, like units (e....
Definition: Overlay.h:183
Contains pointers to various 'global' objects that are needed by the simulation code,...
Definition: SimContext.h:34
Interned 8-bit strings.
Definition: CStrIntern.h:42
Rendering data for an STexturedOverlayLine.
Definition: TexturedLineRData.h:49
Definition: Vector2D.h:32
Definition: Vector3D.h:32
std::shared_ptr< CTexture > CTexturePtr
Definition: Texture.h:25
Definition: Overlay.h:189
CStrIntern m_QuadTextureMask
Definition: Overlay.h:192
CStrIntern m_LineTexture
Definition: Overlay.h:193
float m_LineThickness
Definition: Overlay.h:195
SOverlayDescriptor()
Definition: Overlay.h:198
int m_Radius
Definition: Overlay.h:196
CStrIntern m_LineTextureMask
Definition: Overlay.h:194
EOverlayType m_Type
Definition: Overlay.h:190
CStrIntern m_QuadTexture
Definition: Overlay.h:191
Line-based overlay, with world-space coordinates, rendered in the world potentially behind other obje...
Definition: Overlay.h:42
float m_Thickness
Definition: Overlay.h:49
void PushCoords(const float x, const float y, const float z)
Definition: Overlay.h:53
std::vector< CVector3D > m_Coords
Definition: Overlay.h:47
SOverlayLine()
Definition: Overlay.h:43
CColor m_Color
Definition: Overlay.h:45
void PushCoords(const CVector3D &v)
Definition: Overlay.h:51
Rectangular single-quad terrain overlay, in world space coordinates.
Definition: Overlay.h:164
CColor m_Color
Definition: Overlay.h:168
CVector3D m_Corners[4]
Definition: Overlay.h:167
CTexturePtr m_TextureMask
Definition: Overlay.h:166
CTexturePtr m_Texture
Definition: Overlay.h:165
Definition: Overlay.h:172
CVector3D m_Center
Definition: Overlay.h:175
SOverlaySphere()
Definition: Overlay.h:173
float m_Radius
Definition: Overlay.h:176
CColor m_Color
Definition: Overlay.h:177
Billboard sprite overlay, with world-space coordinates, rendered on top of all other objects.
Definition: Overlay.h:151
CVector3D m_Position
Definition: Overlay.h:154
float m_X0
Definition: Overlay.h:155
CColor m_Color
Definition: Overlay.h:153
float m_X1
Definition: Overlay.h:155
float m_Y1
Definition: Overlay.h:155
CTexturePtr m_Texture
Definition: Overlay.h:152
float m_Y0
Definition: Overlay.h:155
Textured line overlay, with world-space coordinates, rendered in the world onto the terrain.
Definition: Overlay.h:69
void PushCoords(const float x, const float z)
Definition: Overlay.h:135
LineCapType
Definition: Overlay.h:71
@ LINECAP_SHARP
sharp point ending
Definition: Overlay.h:81
@ LINECAP_ROUND
Semi-circular line ending.
Definition: Overlay.h:80
@ LINECAP_FLAT
no line ending; abrupt stop of the line (aka. butt ending)
Definition: Overlay.h:72
@ LINECAP_SQUARE
square end that extends half the line width beyond the line end
Definition: Overlay.h:82
bool m_AlwaysVisible
Should this line be rendered fully visible at all times, even under the SoD?
Definition: Overlay.h:102
LineCapType m_EndCapType
Definition: Overlay.h:105
CTexturePtr m_TextureBase
Definition: Overlay.h:90
CTexturePtr m_TextureMask
Definition: Overlay.h:91
void CreateOverlayTexture(const SOverlayDescriptor *overlayDescriptor)
Creates the texture specified by the given overlay descriptor and assigns it to this overlay.
Definition: Overlay.cpp:44
CColor m_Color
Color to apply to the line texture, where indicated by the mask.
Definition: Overlay.h:94
const CSimContext * m_SimContext
Simulation context applicable for this overlay line; used to obtain terrain information during automa...
Definition: Overlay.h:111
void PushCoords(const std::vector< CVector2D > &points)
Definition: Overlay.h:137
void PushCoords(const CVector2D &v)
Definition: Overlay.h:136
float m_Thickness
Half-width of the line, in world-space units.
Definition: Overlay.h:98
static LineCapType StrToLineCapType(const std::wstring &str)
Converts a string line cap type into its corresponding LineCap enum value, and returns the resulting ...
Definition: Overlay.cpp:28
bool IsVisibleInFrustum(const CFrustum &frustum) const
Definition: Overlay.cpp:67
std::shared_ptr< CTexturedLineRData > m_RenderData
Cached renderer data, because expensive to compute.
Definition: Overlay.h:121
std::vector< CVector2D > m_Coords
(x, z) vertex coordinate pairs; y is computed automatically.
Definition: Overlay.h:96
LineCapType m_StartCapType
Definition: Overlay.h:104
SOverlayTexturedLine()
Definition: Overlay.h:85
bool m_Closed
Should this line be treated as a closed loop? If set, any end cap settings are ignored.
Definition: Overlay.h:100