Class BufferViewModel
This wrap a buffer.
Inherited Members
Namespace: Evergine.Framework.Assets.GltfModel
Assembly: Evergine.Framework.dll
Syntax
public class BufferViewModel
Fields
BufferId
Gets the buffer Id.
Declaration
public Guid BufferId
Field Value
Type | Description |
---|---|
Guid |
BufferIndex
The buffer index.
Declaration
public int BufferIndex
Field Value
Type | Description |
---|---|
int |
BufferLength
Gets the buffer length.
Declaration
public int BufferLength
Field Value
Type | Description |
---|---|
int |
BufferOffset
Gets or sets the buffer offset.
Declaration
public int BufferOffset
Field Value
Type | Description |
---|---|
int |
Flags
The buffer flags.
Declaration
public BufferFlags Flags
Field Value
Type | Description |
---|---|
BufferFlags |
StartPtr
Gets the buffer pointer.
Declaration
public IntPtr StartPtr
Field Value
Type | Description |
---|---|
IntPtr |
Stride
Gets the buffer stride.
Declaration
public int? Stride
Field Value
Type | Description |
---|---|
int? |
Methods
Read(BinaryReader)
Read this asset part.
Declaration
public static BufferViewModel Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
BufferViewModel | The loaded asset part. |
Write(BinaryWriter)
Write this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |