Space Engineers
Public Attributes | Properties | List of all members
Sandbox.Graphics.GUI.MyGuiHighlightTexture Struct Reference

Structure describing texture that consists of normal and highlight version. Also holds information about size of the texture before it was scaled to power of 2 and this size in GUI normalized coordinates. More...

Public Attributes

string Normal
 Normal, non highlight version of the texture; More...
 
string Highlight
 Highlight version of the texture. More...
 

Properties

Vector2 SizePx [get, set]
 Size in pixels before texture was scaled to power of 2. This helps when we have to compute its correct aspect ratio and ideal resolution for rendering. More...
 
Vector2 SizeGui [get]
 Size in pixels converted to normalized gui coordinates. Can be used as size when drawing. More...
 

Detailed Description

Structure describing texture that consists of normal and highlight version. Also holds information about size of the texture before it was scaled to power of 2 and this size in GUI normalized coordinates.

Definition at line 29 of file MyGuiControlBase.cs.

Member Data Documentation

string Sandbox.Graphics.GUI.MyGuiHighlightTexture.Highlight

Highlight version of the texture.

Definition at line 39 of file MyGuiControlBase.cs.

string Sandbox.Graphics.GUI.MyGuiHighlightTexture.Normal

Normal, non highlight version of the texture;

Definition at line 34 of file MyGuiControlBase.cs.

Property Documentation

Vector2 Sandbox.Graphics.GUI.MyGuiHighlightTexture.SizeGui
get

Size in pixels converted to normalized gui coordinates. Can be used as size when drawing.

Definition at line 62 of file MyGuiControlBase.cs.

Vector2 Sandbox.Graphics.GUI.MyGuiHighlightTexture.SizePx
getset

Size in pixels before texture was scaled to power of 2. This helps when we have to compute its correct aspect ratio and ideal resolution for rendering.

Definition at line 47 of file MyGuiControlBase.cs.


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