Method | Description | |
---|---|---|
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, |
Draws the specified texture2D, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, Vector2 position, |
Draws the specified texture2D, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, Vector2 position, |
Draws the specified texture2D, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
DrawControllerSymbol ( Buttons button, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects spriteEffects, float layerDepth ) : void |
Draws the specified controller symbol, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
DrawLine ( Vector2 pointA, Vector2 pointB, float width, float layerDepth, Color color ) : void |
Draws a black line from point A to point B.
|
|
DrawOutlinedString ( |
Draws the specified string in the specified font, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls. This creates a black outline around the string.
|
|
DrawRectangle ( |
Draws the rectangle.
|
|
DrawString ( |
Draws the specified string in the specified font, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
DrawString ( |
Draws the specified string in the specified font, assuming that it was drawn assuming the screen is exactly 1920 * 1080. Be sure to call spriteBatch.Begin() before this and spriteBatch.End() at the end of the series of Drawing calls.
|
|
FormatNumber ( uint value ) : string |
Formats the number. For example, 12345 returns "12,345".
|
|
GetControllerSymbolMap ( char input ) : char |
Gets the controller symbol mapping.
|
|
GetRatio ( ) : float |
This returns the ratio of the screen height to 1080, in the event that the TV is not at a 1080i or 1080p resolution. All scales and positions should be multiplied by this in order to correctly adjust to any screen resolution, while always assuming that the screen is 1920 * 1080.
|
|
Initiallize ( ) : void |
Initiallizes the static variables used by this static public class..
|
Method | Description | |
---|---|---|
GetLayerDepthScale ( float layerDepth ) : float |
Gets the layer depth scale (so screens will be drawn on top of each other without having to worry about layer depths).
|
public static Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, |
||
texture2D | Microsoft.Xna.Framework.Graphics.Texture2D | The texture2 D. |
destinationRectangle | The destination rectangle. | |
sourceRectangle | The source rectangle. | |
color | Color | The color. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
effects | SpriteEffects | The effects. |
layerDepth | float | The layer depth. |
return | void |
public static Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, Vector2 position, |
||
texture2D | Microsoft.Xna.Framework.Graphics.Texture2D | The texture2D. |
position | Vector2 | The position. |
sourceRectangle | The source rectangle. | |
color | Color | The color. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | Vector2 | The scale. |
effects | SpriteEffects | The effects. |
layerDepth | float | The layer depth. |
return | void |
public static Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D, Vector2 position, |
||
texture2D | Microsoft.Xna.Framework.Graphics.Texture2D | The texture2 D. |
position | Vector2 | The position. |
sourceRectangle | The source rectangle. | |
color | Color | The color. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | float | The scale. |
effects | SpriteEffects | The effects. |
layerDepth | float | The layer depth. |
return | void |
public static DrawControllerSymbol ( Buttons button, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects spriteEffects, float layerDepth ) : void | ||
button | Buttons | The button to draw. |
position | Vector2 | The position. |
color | Color | The color of the string. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | float | The scale. |
spriteEffects | SpriteEffects | The sprite effects. |
layerDepth | float | The layer depth. |
return | void |
public static DrawLine ( Vector2 pointA, Vector2 pointB, float width, float layerDepth, Color color ) : void | ||
pointA | Vector2 | The point A. |
pointB | Vector2 | The point B. |
width | float | The width. |
layerDepth | float | The layer depth. |
color | Color | The color. |
return | void |
public static DrawOutlinedString ( |
||
font | The font. | |
text | string | The text to write. |
position | Vector2 | The position. |
color | Color | The color of the string. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | float | The scale. |
spriteEffects | SpriteEffects | The sprite effects. |
layerDepth | float | The layer depth. |
return | void |
public static DrawRectangle ( |
||
toDraw | The rectangle to draw. | |
width | float | The width. |
layerDepth | float | The layer depth. |
color | Color | The color. |
return | void |
public static DrawString ( |
||
font | The font. | |
text | string | The text to write. |
position | Vector2 | The position. |
color | Color | The color of the string. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | Vector2 | The scale. |
spriteEffects | SpriteEffects | The sprite effects. |
layerDepth | float | The layer depth. |
return | void |
public static DrawString ( |
||
font | The font. | |
text | string | The text to write. |
position | Vector2 | The position. |
color | Color | The color of the string. |
rotation | float | The rotation. |
origin | Vector2 | The origin. |
scale | float | The scale. |
spriteEffects | SpriteEffects | The sprite effects. |
layerDepth | float | The layer depth. |
return | void |
public static FormatNumber ( uint value ) : string | ||
value | uint | The value. |
return | string |
public static GetControllerSymbolMap ( char input ) : char | ||
input | char | The input. |
return | char |