C# 클래스 Vitaboy.AvatarBase

Class for drawing and updating the meshes that make up an avatar. Also responsible for animating an avatar.
상속: IDisposable
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Animation Files.Vitaboy.Anim
HeadMesh Files.Vitaboy.Mesh
LeftHandTexture Microsoft.Xna.Framework.Graphics.Texture2D
RotationRange float
RotationSpeed float
RotationStartAngle float
ShouldRotate bool
Skel Files.Vitaboy.Skeleton

보호된 프로퍼티들

프로퍼티 타입 설명
m_BodyEffect Microsoft.Xna.Framework.Graphics.BasicEffect
m_Devc GraphicsDevice

공개 메소드들

메소드 설명
AdvanceFrame ( Anim Animation, float TimeDelta ) : void

Advances the frame of an animation for a skeleton used on this mesh.

AvatarBase ( GraphicsDevice Devc, Skeleton Skel ) : System

Creates a new instance of AvatarBase.

ChangeOutfit ( Outfit Oft, SkinType Type ) : void

Changes this avatar's outfit.

ComputeBonePositions ( Bone bone, Matrix world ) : void

Computes the absolute positions for all bones in a Skeleton.

Dispose ( ) : void
Render ( Matrix ViewMatrix, Matrix WorldMatrix, Matrix ProjectionMatrix ) : void

Renders the different meshes making up this avatar.

SetHead ( Outfit HeadOutfit, SkinType Type ) : void

Sets this avatar's head outfit.

Update ( GameTime GTime ) : void

Updates this avatar's rotation.

보호된 메소드들

메소드 설명
Dispose ( bool CleanUpManagedResources ) : void

비공개 메소드들

메소드 설명
DegreesToRadians ( double Angle ) : double

Converts an angle given in degrees to radians.

TransformVertices ( Mesh Msh, Bone bone, MeshType MshType ) : void

Transforms all vertices in a given mesh to their correct positions.

메소드 상세

AdvanceFrame() 공개 메소드

Advances the frame of an animation for a skeleton used on this mesh.
public AdvanceFrame ( Anim Animation, float TimeDelta ) : void
Animation Files.Vitaboy.Anim The animation to advance.
TimeDelta float The timedelta of the rendering loop.
리턴 void

AvatarBase() 공개 메소드

Creates a new instance of AvatarBase.
public AvatarBase ( GraphicsDevice Devc, Skeleton Skel ) : System
Devc GraphicsDevice A GraphicsDevice instance.
Skel Files.Vitaboy.Skeleton A Skeleton instance.
리턴 System

ChangeOutfit() 공개 메소드

Changes this avatar's outfit.
public ChangeOutfit ( Outfit Oft, SkinType Type ) : void
Oft Files.Vitaboy.Outfit
Type SkinType
리턴 void

ComputeBonePositions() 공개 메소드

Computes the absolute positions for all bones in a Skeleton.
public ComputeBonePositions ( Bone bone, Matrix world ) : void
bone Files.Vitaboy.Bone The first bone in the skeleton.
world Matrix World matrix.
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool CleanUpManagedResources ) : void
CleanUpManagedResources bool
리턴 void

Render() 공개 메소드

Renders the different meshes making up this avatar.
public Render ( Matrix ViewMatrix, Matrix WorldMatrix, Matrix ProjectionMatrix ) : void
ViewMatrix Matrix A view matrix.
WorldMatrix Matrix A world matrix.
ProjectionMatrix Matrix A projection matrix.
리턴 void

SetHead() 공개 메소드

Sets this avatar's head outfit.
public SetHead ( Outfit HeadOutfit, SkinType Type ) : void
HeadOutfit Files.Vitaboy.Outfit
Type SkinType
리턴 void

Update() 공개 메소드

Updates this avatar's rotation.
public Update ( GameTime GTime ) : void
GTime Microsoft.Xna.Framework.GameTime A GameTime instance.
리턴 void

프로퍼티 상세

Animation 공개적으로 프로퍼티

public Anim,Files.Vitaboy Animation
리턴 Files.Vitaboy.Anim

HeadMesh 공개적으로 프로퍼티

public Mesh,Files.Vitaboy HeadMesh
리턴 Files.Vitaboy.Mesh

LeftHandTexture 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics LeftHandTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

RotationRange 공개적으로 프로퍼티

public float RotationRange
리턴 float

RotationSpeed 공개적으로 프로퍼티

public float RotationSpeed
리턴 float

RotationStartAngle 공개적으로 프로퍼티

public float RotationStartAngle
리턴 float

ShouldRotate 공개적으로 프로퍼티

Should this avatar be rotated when rendered? Used for rendering in UI.
public bool ShouldRotate
리턴 bool

Skel 공개적으로 프로퍼티

public Skeleton,Files.Vitaboy Skel
리턴 Files.Vitaboy.Skeleton

m_BodyEffect 보호되어 있는 프로퍼티

protected BasicEffect,Microsoft.Xna.Framework.Graphics m_BodyEffect
리턴 Microsoft.Xna.Framework.Graphics.BasicEffect

m_Devc 보호되어 있는 프로퍼티

protected GraphicsDevice m_Devc
리턴 GraphicsDevice