Class GraphicBuffer
Represents a vertex buffer.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class GraphicBuffer : IDisposable
Constructors
GraphicBuffer(Buffer, int, int, IntPtr)
Initializes a new instance of the GraphicBuffer class.
Declaration
public GraphicBuffer(Buffer buffer, int offset = 0, int size = 0, IntPtr data = default)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
int | offset | The offset respect the buffer. |
int | size | The size of the vertex buffer. |
IntPtr | data | The specified. |
Fields
Buffer
The associated buffer.
Declaration
public readonly Buffer Buffer
Field Value
Type | Description |
---|---|
Buffer |
Offset
The offset.
Declaration
public readonly int Offset
Field Value
Type | Description |
---|---|
int |
Size
The size.
Declaration
public readonly int Size
Field Value
Type | Description |
---|---|
int |
Properties
Data
Gets the Data pointer.
Declaration
public IntPtr Data { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Methods
Dispose()
Public implementation of Dispose pattern callable by consumers.
Declaration
public void Dispose()
Dispose(bool)
Protected implementation of Dispose pattern.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | Dispose native elements. |
~GraphicBuffer()
Finalizes an instance of the GraphicBuffer class.
Declaration
protected ~GraphicBuffer()