Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ViewportIcon Class Reference

Public Member Functions

 ViewportIcon (const char *textureFilename)
 
AZ::Vector2 GetTextureSize () const
 
void DrawImageAligned (Draw2dHelper &draw2d, AZ::Vector2 &pivot, float opacity)
 
void DrawImageTiled (Draw2dHelper &draw2d, IDraw2d::VertexPosColUV *verts)
 
void Draw (Draw2dHelper &draw2d, AZ::Vector2 anchorPos, const AZ::Matrix4x4 &transform, float iconRot=0.0f, AZ::Color color=AZ::Color(1.0f, 1.0f, 1.0f, 1.0f)) const
 
void DrawAxisAlignedBoundingBox (Draw2dHelper &draw2d, AZ::Vector2 bound0, AZ::Vector2 bound1)
 
void DrawAnchorLines (Draw2dHelper &draw2d, AZ::Vector2 anchorPos, AZ::Vector2 targetPos, const AZ::Matrix4x4 &transform, bool xFirst, bool xText, bool yText)
 
void DrawDistanceLine (Draw2dHelper &draw2d, AZ::Vector2 start, AZ::Vector2 end, float displayDistance, const char *suffix=nullptr)
 
void DrawAnchorLinesSplit (Draw2dHelper &draw2d, AZ::Vector2 anchorPos1, AZ::Vector2 anchorPos2, AZ::Vector2 targetPos, const AZ::Matrix4x4 &transform, bool horizSplit, const char *suffix=nullptr)
 
void DrawDistanceLineWithTransform (Draw2dHelper &draw2d, AZ::Vector2 sourcePos, AZ::Vector2 targetPos, const AZ::Matrix4x4 &transform, float value, const char *suffix=nullptr)
 
void DrawElementRectOutline (Draw2dHelper &draw2d, AZ::EntityId entityId, AZ::Color color)
 
void SetApplyDpiScaleFactorToSize (bool apply)
 
bool GetApplyDpiScaleFactorToSize ()
 

Static Public Member Functions

static void SetDpiScaleFactor (float scale)
 
static float GetDpiScaleFactor ()
 

The documentation for this class was generated from the following file: