Beispiel #1
0
 public Block(Allocator parent, int k, int offset)
 {
     this.parent = parent;
     this.k = k;
     Offset = offset;
     IsUsed = false;
     parent.chunks.Add(offset, this);
 }
Beispiel #2
0
 public BufferManager(int size, int chunkSize)
 {
     allocator = new Allocator(size, chunkSize);
     buffer = new VertexBuffer(size, BufferTarget.ArrayBuffer, BufferUsageHint.StaticDraw);
 }