C# 클래스 FarseerPhysics.Samples.DrawingSystem.AssetCreator

파일 보기 프로젝트 열기: tinco/Farseer-Physics 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AssetCreator() 공개 메소드

public AssetCreator ( GraphicsDevice device ) : System
device GraphicsDevice
리턴 System

CalculateOrigin() 공개 정적인 메소드

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

CircleTexture() 공개 메소드

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

EllipseTexture() 공개 메소드

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
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

LoadContent() 공개 메소드

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

TextureFromShape() 공개 메소드

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
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

TextureFromVertices() 공개 메소드

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