Reign.Video.IVertexBuffer.IVertexBuffer C# (CSharp) Method

IVertexBuffer() protected method

protected IVertexBuffer ( IDisposableResource parent, IBufferLayoutDesc bufferLayoutDesc, BufferUsages usage, float vertices ) : System
parent IDisposableResource
bufferLayoutDesc IBufferLayoutDesc
usage BufferUsages
vertices float
return System
        protected IVertexBuffer(IDisposableResource parent, IBufferLayoutDesc bufferLayoutDesc, BufferUsages usage, float[] vertices)
            : base(parent)
        {
            this.usage = usage;
            vertexByteSize = bufferLayoutDesc.ByteSize;
            vertexFloatArraySize = bufferLayoutDesc.FloatCount;
            vertexCount = vertices.Length / vertexFloatArraySize;
        }