Empeld
Empeld plugin documentation.
pluginbase.Helpers.Buffers.Buffer2d< T > Class Template Reference

I'm a buffer. I store 2D data. I'm unsafe More...

Public Member Functions

 Buffer2d (int w, int h)
 Initializes a buffer with the given width and height More...
 

Public Attributes

readonly int Width
 The width of the buffer More...
 
readonly int Height
 The height of the buffer More...
 

Detailed Description

I'm a buffer. I store 2D data. I'm unsafe

Template Parameters
T

Constructor & Destructor Documentation

◆ Buffer2d()

pluginbase.Helpers.Buffers.Buffer2d< T >.Buffer2d ( int  w,
int  h 
)

Initializes a buffer with the given width and height

Parameters
wThe width.
hThe height.

Attribute: w*h

;

29  {
30  Width = w;
31  Height = h;
32  _data = new T[w*h];
33  }
readonly int Height
The height of the buffer
Definition: Buffer2d.cs:18
readonly int Width
The width of the buffer
Definition: Buffer2d.cs:13

Member Data Documentation

◆ Height

readonly int pluginbase.Helpers.Buffers.Buffer2d< T >.Height

The height of the buffer

◆ Width

readonly int pluginbase.Helpers.Buffers.Buffer2d< T >.Width

The width of the buffer


The documentation for this class was generated from the following file: