Class AccessorModel
This wraps an accessor.
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 of 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 maximum values.
Declaration
public float[] Max
Field Value
Type | Description |
---|---|
float[] |
Min
The minimum values.
Declaration
public float[] Min
Field Value
Type | Description |
---|---|
float[] |
StartPtr
Points to the buffer.
Declaration
public nint StartPtr
Field Value
Type | Description |
---|---|
nint |
Stride
The stride.
Declaration
public int Stride
Field Value
Type | Description |
---|---|
int |
Methods
GetByte4(int)
Gets the 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)
Gets a Vector2 by index.
Declaration
public float GetFloat(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
float | The Vector2. |
GetFloatArray(int, int)
Gets a 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)
Gets the matrix by index.
Declaration
public Matrix4x4 GetMatrix4x4(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Matrix4x4 | The Byte4. |
GetMaxFloat()
Gets the minimum value as a float.
Declaration
public float? GetMaxFloat()
Returns
Type | Description |
---|---|
float? | The minimum. |
GetMaxVector3()
Gets the minimum value as a float.
Declaration
public Vector3? GetMaxVector3()
Returns
Type | Description |
---|---|
Vector3? | The minimum value. |
GetMinFloat()
Gets the minimum value as a float.
Declaration
public float? GetMinFloat()
Returns
Type | Description |
---|---|
float? | The minimum value. |
GetMinVector3()
Gets the minimum value as a float.
Declaration
public Vector3? GetMinVector3()
Returns
Type | Description |
---|---|
Vector3? | The minimum value. |
GetQuaternion(int)
Gets 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)
Gets 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)
Gets a 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)
Gets a 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)
Gets a vector4 by index.
Declaration
public Vector4 GetVector4(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Vector4 | The vector4. |
Read(BinaryReader)
Reads 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)
Writes this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |