Class DrawArrays
Represents an operator that renders primitives using each of the array data in the sequence.
public class DrawArrays : Sink<Mat>
- Inheritance
-
DrawArrays
- Inherited Members
Properties
DrawMode
Gets or sets a value specifying the kind of primitives to render with the vertex array data.
public PrimitiveType DrawMode { get; set; }
Property Value
ShaderName
Gets or sets the name of the material shader program.
[TypeConverter(typeof(MaterialNameConverter))]
public string ShaderName { get; set; }
Property Value
Usage
Gets or sets a value specifying the expected usage pattern of the vertex buffer.
public BufferUsageHint Usage { get; set; }
Property Value
VertexAttributes
Gets the collection of vertex attributes specifying how to interpret the vertex array data.
public VertexAttributeMappingCollection VertexAttributes { get; }
Property Value
Methods
Process(IObservable<Mat>)
Renders primitives using each of the matrix data in an observable sequence.
public override IObservable<Mat> Process(IObservable<Mat> source)
Parameters
source
IObservable<Mat>A sequence of Mat objects representing the vertex array data used to render each primitive.
Returns
- IObservable<Mat>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of scheduling a primitive render operation where vertex data is drawn from each of the matrices in the sequence.
Process<TVertex>(IObservable<TVertex[]>)
Renders primitives using each of the array data in an observable sequence.
public IObservable<TVertex[]> Process<TVertex>(IObservable<TVertex[]> source) where TVertex : struct
Parameters
source
IObservable<TVertex[]>A sequence of vertex array data used to render each primitive.
Returns
- IObservable<TVertex[]>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of scheduling a primitive render operation where vertex data is drawn from each of the arrays in the sequence.
Type Parameters
TVertex
The type of the array elements used to render each primitive.