Class SdkMeshFile
Assembly: JeremyAnsel.DirectX.SdkMesh.dll
Syntax
public sealed class SdkMeshFile
Properties
|
Edit this page
View Source
AnimationFPS
Declaration
public int AnimationFPS { get; }
Property Value
|
Edit this page
View Source
Declaration
public SdkMeshFrameTransformType AnimationFrameTransformType { get; }
Property Value
|
Edit this page
View Source
AnimationFrames
Declaration
public IList<SdkMeshAnimationFrame> AnimationFrames { get; }
Property Value
|
Edit this page
View Source
AnimationKeysCount
Declaration
public int AnimationKeysCount { get; }
Property Value
|
Edit this page
View Source
FileDirectory
Declaration
public string FileDirectory { get; }
Property Value
|
Edit this page
View Source
FilePath
Declaration
public string FilePath { get; }
Property Value
|
Edit this page
View Source
Frames
Declaration
public IList<SdkMeshFrame> Frames { get; }
Property Value
|
Edit this page
View Source
Materials
Declaration
public IList<SdkMeshMaterial> Materials { get; }
Property Value
|
Edit this page
View Source
Meshes
Declaration
public IList<SdkMeshMesh> Meshes { get; }
Property Value
Methods
|
Edit this page
View Source
FindFrame(string)
Declaration
public SdkMeshFrame FindFrame(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
FromFile(D3D11Device, D3D11DeviceContext, string)
Declaration
public static SdkMeshFile FromFile(D3D11Device device, D3D11DeviceContext deviceContext, string fileName)
Parameters
Type |
Name |
Description |
D3D11Device |
device |
|
D3D11DeviceContext |
deviceContext |
|
string |
fileName |
|
Returns
|
Edit this page
View Source
GetAnimationKeyFromTime(double)
Declaration
public int GetAnimationKeyFromTime(double time)
Parameters
Type |
Name |
Description |
double |
time |
|
Returns
|
Edit this page
View Source
GetAnimationProperties(out int, out float)
Declaration
public bool GetAnimationProperties(out int numKeys, out float frameTime)
Parameters
Type |
Name |
Description |
int |
numKeys |
|
float |
frameTime |
|
Returns
|
Edit this page
View Source
GetInfluenceMatrix(int)
Declaration
public XMMatrix GetInfluenceMatrix(int frameIndex)
Parameters
Type |
Name |
Description |
int |
frameIndex |
|
Returns
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
GetMeshInfluenceMatrix(int, int)
Declaration
public XMMatrix GetMeshInfluenceMatrix(int meshIndex, int influanceIndex)
Parameters
Type |
Name |
Description |
int |
meshIndex |
|
int |
influanceIndex |
|
Returns
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
GetWorldMatrix(int)
Declaration
public XMMatrix GetWorldMatrix(int frameIndex)
Parameters
Type |
Name |
Description |
int |
frameIndex |
|
Returns
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
Release()
Declaration
|
Edit this page
View Source
Render(int, int, int)
Declaration
public void Render(int diffuseSlot, int normalSlot, int specularSlot)
Parameters
Type |
Name |
Description |
int |
diffuseSlot |
|
int |
normalSlot |
|
int |
specularSlot |
|
|
Edit this page
View Source
Declaration
public void TransformBindPose(XMMatrix world)
Parameters
Type |
Name |
Description |
XMMatrix |
world |
|
|
Edit this page
View Source
Declaration
public void TransformMesh(XMMatrix world, double time)
Parameters
Type |
Name |
Description |
XMMatrix |
world |
|
double |
time |
|