Esempio n. 1
0
 private BufferObject RequestBuffer(string name, BufferTarget bufferTarget)
 {
     if (!attributeBuffer.TryGetValue(name, out BufferObject buffer))
     {
         buffer = new BufferObject(bufferTarget);
         attributeBuffer[name] = buffer;
     }
     return(buffer);
 }
Esempio n. 2
0
 private BufferObject RequestBuffer(int bindingID, BufferTarget bufferTarget)
 {
     if (!boundBuffers.TryGetValue(bindingID, out BufferObject buffer))
     {
         buffer = new BufferObject(bufferTarget);
         boundBuffers[bindingID] = buffer;
     }
     return(buffer);
 }