C# Class SGDE.Graphics.Graphics2D

2D graphics processor.
Inheritance: Microsoft.Xna.Framework.Graphics.SpriteBatch
Datei anzeigen Open project: sgdc/sgdc-old

Public Methods

Method Description
DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color ) : void

Draw a StringBuilder.

DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Draw a StringBuilder.

DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Draw a StringBuilder.

DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color ) : void

Draw a String.

DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Draw a String.

DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Draw a String.

DrawString ( StringBuilder text, Vector2 position, Color color ) : void

Draw a StringBuilder.

DrawString ( StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Draw a StringBuilder.

DrawString ( StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Draw a StringBuilder.

DrawString ( string text, Vector2 position, Color color ) : void

Draw a String.

DrawString ( string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Draw a String.

DrawString ( string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Draw a String.

Private Methods

Method Description
Graphics2D ( Microsoft.Xna.Framework.Game game ) : System

Method Details

DrawString() public method

Draw a StringBuilder.
public DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
return void

DrawString() public method

Draw a StringBuilder.
public DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale Vector2 Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a StringBuilder.
public DrawString ( SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale float Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a String.
public DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
return void

DrawString() public method

Draw a String.
public DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale Vector2 Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a String.
public DrawString ( SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont A font for diplaying text.
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale float Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a StringBuilder.
public DrawString ( StringBuilder text, Vector2 position, Color color ) : void
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
return void

DrawString() public method

Draw a StringBuilder.
public DrawString ( StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale Vector2 Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a StringBuilder.
public DrawString ( StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
text StringBuilder A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale float Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a String.
public DrawString ( string text, Vector2 position, Color color ) : void
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
return void

DrawString() public method

Draw a String.
public DrawString ( string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale Vector2 Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void

DrawString() public method

Draw a String.
public DrawString ( string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
text string A text string.
position Vector2 The location (in screen coordinates) to draw the sprite.
color Color The color to tint a sprite. Use Color.White for full color with no tinting.
rotation float Specifies the angle (in radians) to rotate the sprite about its center.
origin Vector2 The sprite origin; the default is (0,0) which represents the upper-left corner.
scale float Scale factor.
effects SpriteEffects Effects to apply.
layerDepth float The depth of a layer.
return void