C# Class FarseerPhysics.Samples.DrawingSystem.AssetCreator

Show file Open project: tinco/Farseer-Physics Class Usage Examples

Public Methods

Method Description
AssetCreator ( GraphicsDevice device ) : System
CalculateOrigin ( Body b ) : Vector2
CircleTexture ( float radius, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
EllipseTexture ( float radiusX, float radiusY, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void
TextureFromShape ( Shape shape, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
TextureFromVertices ( Vertices vertices, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D

Private Methods

Method Description
RenderTexture ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D material, List verticesFill, Microsoft.Xna.Framework.Graphics.VertexPositionColor verticesOutline ) : Microsoft.Xna.Framework.Graphics.Texture2D
RenderTexture ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D material, Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture verticesFill, Microsoft.Xna.Framework.Graphics.VertexPositionColor verticesOutline ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

AssetCreator() public method

public AssetCreator ( GraphicsDevice device ) : System
device GraphicsDevice
return System

CalculateOrigin() public static method

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

CircleTexture() public method

public CircleTexture ( float radius, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
radius float
type MaterialType
color Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

EllipseTexture() public method

public EllipseTexture ( float radiusX, float radiusY, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
radiusX float
radiusY float
type MaterialType
color Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void
contentManager Microsoft.Xna.Framework.Content.ContentManager
return void

TextureFromShape() public method

public TextureFromShape ( Shape shape, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
shape FarseerPhysics.Collision.Shapes.Shape
type MaterialType
color Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D

TextureFromVertices() public method

public TextureFromVertices ( Vertices vertices, MaterialType type, Color color, float materialScale ) : Microsoft.Xna.Framework.Graphics.Texture2D
vertices Vertices
type MaterialType
color Color
materialScale float
return Microsoft.Xna.Framework.Graphics.Texture2D