Class GraphicBuffer
Represents a vertex buffer.
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class GraphicBuffer
Constructors
GraphicBuffer(Buffer, int, int, nint)
Initializes a new instance of the GraphicBuffer class.
Declaration
public GraphicBuffer(Buffer buffer, int offset = 0, int size = 0, nint data = 0)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
int | offset | The offset relative to the buffer. |
int | size | The size of the vertex buffer. |
nint | data | The specified data. |
Fields
Buffer
The buffer that is associated.
Declaration
public readonly Buffer Buffer
Field Value
Type | Description |
---|---|
Buffer |
Offset
The offset value.
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 nint Data { get; }
Property Value
Type | Description |
---|---|
nint |
Methods
Dispose()
Public implementation of the Dispose pattern, callable by consumers.
Declaration
public void Dispose()
Dispose(bool)
Protected implementation of the Dispose pattern.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | Disposes of native elements. |
~GraphicBuffer()
Finalizes an instance of the GraphicBuffer class.
Declaration
protected ~GraphicBuffer()