Exemple #1
0
        public IBufferRange CreateUniformBufferRange(IUniformBlock uniformBlock)
        {
            var r = new BufferRangeGL(this, uniformBlock);

            Add(r);
            return(r);
        }
Exemple #2
0
        public IBufferRange CreateVertexBufferRange()
        {
            var r = new BufferRangeGL(this);

            Add(r);
            return(r);
        }
Exemple #3
0
        public IBufferRange CreateIndexBufferRange(BeginMode beginMode)
        {
            var r = new BufferRangeGL(this, beginMode);

            Add(r);
            return(r);
        }
Exemple #4
0
 private void Add(BufferRangeGL bufferRange)
 {
     lock (this)
     {
         if (bufferRange is BufferRangeGL)
         {
             bufferRanges.Add((BufferRangeGL)bufferRange);
         }
         else
         {
             throw new ArgumentException("bufferRange does not match buffer - expecting GL3 buffer range");
         }
     }
 }
Exemple #5
0
 internal BufferRangeGLRL(BufferRangeGL gl, BufferRangeRL rl)
 {
     bufferRangeGL = gl;
     bufferRangeRL = rl;
 }