Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public BufferManager(int size, int chunkSize)
 {
     allocator = new Allocator(size, chunkSize);
     buffer = new VertexBuffer(size, BufferTarget.ArrayBuffer, BufferUsageHint.StaticDraw);
 }