C# Class FarseerPhysics.Samples.DrawingSystem.AssetCreator

Afficher le fichier Open project: tinco/Farseer-Physics Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AssetCreator ( GraphicsDevice device ) : System
device GraphicsDevice
Résultat System

CalculateOrigin() public static méthode

public static CalculateOrigin ( Body b ) : Vector2
b FarseerPhysics.Dynamics.Body
Résultat Vector2

CircleTexture() public méthode

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

EllipseTexture() public méthode

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
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void
contentManager Microsoft.Xna.Framework.Content.ContentManager
Résultat void

TextureFromShape() public méthode

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
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

TextureFromVertices() public méthode

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