Space Engineers
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase Class Reference
Inheritance diagram for Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase:
Sandbox.Game.GUI.HudViewers.MyHudMarkerRender

Classes

class  DistanceComparer
 
class  MyMarkerStyle
 

Public Member Functions

 MyHudMarkerRenderBase (MyGuiScreenHudBase hudScreen)
 
virtual void Update ()
 
virtual void Draw ()
 
int AllocateMarkerStyle (string font, MyHudTexturesEnum directionIcon, MyHudTexturesEnum targetIcon, Color color)
 
void OverrideStyleForRelation (VRage.Game.MyRelationsBetweenPlayerAndBlock relation, string font, MyHudTexturesEnum directionIcon, MyHudTexturesEnum targetIcon, Color color)
 
int GetStyleForRelation (VRage.Game.MyRelationsBetweenPlayerAndBlock relation)
 
virtual void DrawLocationMarkers (MyHudLocationMarkers locationMarkers)
 
void DrawLocationMarker (int styleHandle, Vector3D position, MyHudEntityParams hudParams, float targetDamageRatio, float targetArmorRatio, float alphaMultiplifier=1f)
 Draws location marker on screen. More...
 

Protected Member Functions

void AddTexturedQuad (MyHudTexturesEnum texture, Vector2 position, Vector2 upVector, Color color, float halfWidth, float halfHeight)
 Add textured quad with specified UP direction and width/height. More...
 
void AddTexturedQuad (string texture, Vector2 position, Vector2 upVector, Color color, float halfWidth, float halfHeight)
 Add textured quad with specified UP direction and width/height. More...
 

Protected Attributes

const double LS_METRES = 299792458.0001367
 
const double LY_METRES = 9.460730473e+15
 
MyGuiScreenHudBase m_hudScreen
 
List< MyMarkerStylem_markerStyles
 
int[] m_markerStylesForBlocks
 
List< MyHudEntityParamsm_sortedMarkers = new List<MyHudEntityParams>(128)
 
DistanceComparer m_distanceComparer = new DistanceComparer()
 

Detailed Description

Definition at line 23 of file MyHudMarkerRenderBase.cs.

Constructor & Destructor Documentation

Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.MyHudMarkerRenderBase ( MyGuiScreenHudBase  hudScreen)
inline

Definition at line 63 of file MyHudMarkerRenderBase.cs.

Member Function Documentation

void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.AddTexturedQuad ( MyHudTexturesEnum  texture,
Vector2  position,
Vector2  upVector,
Color  color,
float  halfWidth,
float  halfHeight 
)
inlineprotected

Add textured quad with specified UP direction and width/height.

Definition at line 297 of file MyHudMarkerRenderBase.cs.

void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.AddTexturedQuad ( string  texture,
Vector2  position,
Vector2  upVector,
Color  color,
float  halfWidth,
float  halfHeight 
)
inlineprotected

Add textured quad with specified UP direction and width/height.

Definition at line 330 of file MyHudMarkerRenderBase.cs.

int Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.AllocateMarkerStyle ( string  font,
MyHudTexturesEnum  directionIcon,
MyHudTexturesEnum  targetIcon,
Color  color 
)
inline

Definition at line 90 of file MyHudMarkerRenderBase.cs.

virtual void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.Draw ( )
inlinevirtual

Reimplemented in Sandbox.Game.GUI.HudViewers.MyHudMarkerRender.

Definition at line 86 of file MyHudMarkerRenderBase.cs.

void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.DrawLocationMarker ( int  styleHandle,
Vector3D  position,
MyHudEntityParams  hudParams,
float  targetDamageRatio,
float  targetArmorRatio,
float  alphaMultiplifier = 1f 
)
inline

Draws location marker on screen.

Definition at line 153 of file MyHudMarkerRenderBase.cs.

virtual void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.DrawLocationMarkers ( MyHudLocationMarkers  locationMarkers)
inlinevirtual

Reimplemented in Sandbox.Game.GUI.HudViewers.MyHudMarkerRender.

Definition at line 108 of file MyHudMarkerRenderBase.cs.

int Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.GetStyleForRelation ( VRage.Game.MyRelationsBetweenPlayerAndBlock  relation)
inline

Definition at line 103 of file MyHudMarkerRenderBase.cs.

void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.OverrideStyleForRelation ( VRage.Game.MyRelationsBetweenPlayerAndBlock  relation,
string  font,
MyHudTexturesEnum  directionIcon,
MyHudTexturesEnum  targetIcon,
Color  color 
)
inline

Definition at line 97 of file MyHudMarkerRenderBase.cs.

virtual void Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.Update ( )
inlinevirtual

Reimplemented in Sandbox.Game.GUI.HudViewers.MyHudMarkerRender.

Definition at line 82 of file MyHudMarkerRenderBase.cs.

Member Data Documentation

const double Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.LS_METRES = 299792458.0001367
protected

Definition at line 25 of file MyHudMarkerRenderBase.cs.

const double Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.LY_METRES = 9.460730473e+15
protected

Definition at line 26 of file MyHudMarkerRenderBase.cs.

DistanceComparer Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.m_distanceComparer = new DistanceComparer()
protected

Definition at line 61 of file MyHudMarkerRenderBase.cs.

MyGuiScreenHudBase Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.m_hudScreen
protected

Definition at line 56 of file MyHudMarkerRenderBase.cs.

List<MyMarkerStyle> Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.m_markerStyles
protected

Definition at line 57 of file MyHudMarkerRenderBase.cs.

int [] Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.m_markerStylesForBlocks
protected

Definition at line 58 of file MyHudMarkerRenderBase.cs.

List<MyHudEntityParams> Sandbox.Game.GUI.HudViewers.MyHudMarkerRenderBase.m_sortedMarkers = new List<MyHudEntityParams>(128)
protected

Definition at line 60 of file MyHudMarkerRenderBase.cs.


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