Class AccessorModel
This wrap an accessors.
Inherited Members
Namespace: Evergine.Framework.Assets.GltfModel
Assembly: Evergine.Framework.dll
Syntax
public class AccessorModel
Fields
BufferViewIndex
buffer view index.
Declaration
public int BufferViewIndex
Field Value
Type | Description |
---|---|
int |
ByteOffset
The buffer offset.
Declaration
public int ByteOffset
Field Value
Type | Description |
---|---|
int |
Count
Gets the count elements.
Declaration
public int Count
Field Value
Type | Description |
---|---|
int |
Format
The accessor format.
Declaration
public AccessorFormat Format
Field Value
Type | Description |
---|---|
AccessorFormat |
Max
The max values.
Declaration
public float[] Max
Field Value
Type | Description |
---|---|
float[] |
Min
The min values.
Declaration
public float[] Min
Field Value
Type | Description |
---|---|
float[] |
StartPtr
The buffer pointer.
Declaration
public IntPtr StartPtr
Field Value
Type | Description |
---|---|
IntPtr |
Stride
The Stride.
Declaration
public int Stride
Field Value
Type | Description |
---|---|
int |
Methods
GetByte4(int)
Get Byte4 by index.
Declaration
public Byte4 GetByte4(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Byte4 | The Byte4. |
GetFloat(int)
Get vector2 by index.
Declaration
public float GetFloat(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
float | The vector3. |
GetFloatArray(int, int)
Get vector3 by index.
Declaration
public float[] GetFloatArray(int index, int size)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
int | size | The size. |
Returns
Type | Description |
---|---|
float[] | The vector3. |
GetFormatByteSize()
Gets format byte size.
Declaration
public int GetFormatByteSize()
Returns
Type | Description |
---|---|
int | The byte size of the format. |
GetMatrix4x4(int)
Get Matrix by index.
Declaration
public Matrix4x4 GetMatrix4x4(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Matrix4x4 | The Byte4. |
GetMaxFloat()
Get min value as float.
Declaration
public float? GetMaxFloat()
Returns
Type | Description |
---|---|
float? | The min. |
GetMaxVector3()
Get min value as float.
Declaration
public Vector3? GetMaxVector3()
Returns
Type | Description |
---|---|
Vector3? | The min. |
GetMinFloat()
Get min value as float.
Declaration
public float? GetMinFloat()
Returns
Type | Description |
---|---|
float? | The min. |
GetMinVector3()
Get min value as float.
Declaration
public Vector3? GetMinVector3()
Returns
Type | Description |
---|---|
Vector3? | The min. |
GetQuaternion(int)
Get quaternion by index.
Declaration
public Quaternion GetQuaternion(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Quaternion | The quaternion. |
GetUShort(int)
Get Byte4 by index.
Declaration
public ushort GetUShort(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
ushort | The Byte4. |
GetVector2(int)
Get vector2 by index.
Declaration
public Vector2 GetVector2(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Vector2 | The vector3. |
GetVector3(int)
Get vector3 by index.
Declaration
public Vector3 GetVector3(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Vector3 | The vector3. |
GetVector4(int)
Get vector4 by index.
Declaration
public Vector4 GetVector4(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Vector4 | The vector3. |
Read(BinaryReader)
Read this asset part.
Declaration
public static AccessorModel Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
AccessorModel | The loaded asset part. |
Write(BinaryWriter)
Write this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |