C# Class FarseerPhysics.Samples.MediaSystem.ContentWrapper

Inheritance: Microsoft.Xna.Framework.GameComponent
Exibir arquivo Open project: tinco/Farseer-Physics Class Usage Examples

Public Properties

Property Type Description
Beige Color
Black Color
Blue Color
Brown Color
Cream Color
Cyan Color
Gold Color
Green Color
Grey Color
Lime Color
Ocean Color
Orange Color
Red Color
Sky Color
Sunset Color
Teal Color

Public Methods

Method Description
BreakableTextureFragments ( BreakableBody body, string textureName ) : List
CalculateOrigin ( Body body ) : Vector2
CircleTexture ( float radius, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
CircleTexture ( float radius, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetFont ( string fontName ) : SpriteFont
GetTexture ( string textureName ) : Microsoft.Xna.Framework.Graphics.Texture2D
Initialize ( Microsoft.Xna.Framework.Game game ) : void
PlaySoundEffect ( string soundName, bool looped ) : SoundEffectInstance

Plays a sound effect by name and returns an instance of that sound.

PlaySoundEffect ( string soundName ) : void

Plays a fire-and-forget sound effect by name.

PolygonTexture ( Vector2 vertices, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
PolygonTexture ( Vector2 vertices, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
PolygonTexture ( Vertices vertices, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
PolygonTexture ( Vertices vertices, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
TextureFromShape ( Shape shape, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
TextureFromShape ( Shape shape, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D

Private Methods

Method Description
ContentWrapper ( Microsoft.Xna.Framework.Game game ) : System
RenderTexture ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D pattern, Color patternColor, List verticesFill, Microsoft.Xna.Framework.Graphics.VertexPositionColor verticesOutline ) : Microsoft.Xna.Framework.Graphics.Texture2D
RenderTexture ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D pattern, Color patternColor, Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture verticesFill, Microsoft.Xna.Framework.Graphics.VertexPositionColor verticesOutline ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

BreakableTextureFragments() public static method

public static BreakableTextureFragments ( BreakableBody body, string textureName ) : List
body FarseerPhysics.Dynamics.BreakableBody
textureName string
return List

CalculateOrigin() public static method

public static CalculateOrigin ( Body body ) : Vector2
body FarseerPhysics.Dynamics.Body
return Vector2

CircleTexture() public static method

public static CircleTexture ( float radius, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
radius float
color Color
outlineColor Color
return Microsoft.Xna.Framework.Graphics.Texture2D

CircleTexture() public static method

public static CircleTexture ( float radius, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
radius float
pattern string
mainColor Color
patternColor Color
outlineColor Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

GetFont() public static method

public static GetFont ( string fontName ) : SpriteFont
fontName string
return Microsoft.Xna.Framework.Graphics.SpriteFont

GetTexture() public static method

public static GetTexture ( string textureName ) : Microsoft.Xna.Framework.Graphics.Texture2D
textureName string
return Microsoft.Xna.Framework.Graphics.Texture2D

Initialize() public static method

public static Initialize ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
return void

PlaySoundEffect() public static method

Plays a sound effect by name and returns an instance of that sound.
public static PlaySoundEffect ( string soundName, bool looped ) : SoundEffectInstance
soundName string The name of the sound to play.
looped bool True if sound effect should loop.
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

PlaySoundEffect() public static method

Plays a fire-and-forget sound effect by name.
public static PlaySoundEffect ( string soundName ) : void
soundName string The name of the sound to play.
return void

PolygonTexture() public static method

public static PolygonTexture ( Vector2 vertices, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
vertices Vector2
color Color
outlineColor Color
return Microsoft.Xna.Framework.Graphics.Texture2D

PolygonTexture() public static method

public static PolygonTexture ( Vector2 vertices, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
vertices Vector2
pattern string
mainColor Color
patternColor Color
outlineColor Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

PolygonTexture() public static method

public static PolygonTexture ( Vertices vertices, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
vertices Vertices
color Color
outlineColor Color
return Microsoft.Xna.Framework.Graphics.Texture2D

PolygonTexture() public static method

public static PolygonTexture ( Vertices vertices, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
vertices Vertices
pattern string
mainColor Color
patternColor Color
outlineColor Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

TextureFromShape() public static method

public static TextureFromShape ( Shape shape, Color color, Color outlineColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
shape FarseerPhysics.Collision.Shapes.Shape
color Color
outlineColor Color
return Microsoft.Xna.Framework.Graphics.Texture2D

TextureFromShape() public static method

public static TextureFromShape ( Shape shape, string pattern, Color mainColor, Color patternColor, Color outlineColor, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
shape FarseerPhysics.Collision.Shapes.Shape
pattern string
mainColor Color
patternColor Color
outlineColor Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

Property Details

Beige public_oe static_oe property

public static Color Beige
return Color

Black public_oe static_oe property

public static Color Black
return Color

Blue public_oe static_oe property

public static Color Blue
return Color

Brown public_oe static_oe property

public static Color Brown
return Color

Cream public_oe static_oe property

public static Color Cream
return Color

Cyan public_oe static_oe property

public static Color Cyan
return Color

Gold public_oe static_oe property

public static Color Gold
return Color

Green public_oe static_oe property

public static Color Green
return Color

Grey public_oe static_oe property

public static Color Grey
return Color

Lime public_oe static_oe property

public static Color Lime
return Color

Ocean public_oe static_oe property

public static Color Ocean
return Color

Orange public_oe static_oe property

public static Color Orange
return Color

Red public_oe static_oe property

public static Color Red
return Color

Sky public_oe static_oe property

public static Color Sky
return Color

Sunset public_oe static_oe property

public static Color Sunset
return Color

Teal public_oe static_oe property

public static Color Teal
return Color