Ejemplo n.º 1
0
 public SimpleRenderable(Buffer buffer, IEnumerable <PipelineType> pipelines, int indexOffset, int indexCount)
 {
     _buffer     = buffer;
     _pipelines  = pipelines.ToHashSet();
     IndexOffset = indexOffset;
     IndexCount  = indexCount;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a grid renderable for a specific viewport.
 /// </summary>
 /// <param name="viewport">The viewport that will render this grid</param>
 /// <param name="engine">The engine interface, to create a buffer</param>
 public GridRenderable(IViewport viewport, EngineInterface engine)
 {
     _viewport  = viewport;
     _validated = false;
     _buffer    = engine.CreateBuffer();
 }
Ejemplo n.º 3
0
 public SimpleRenderable(Buffer buffer, PipelineType pipeline, int indexOffset, int indexCount) : this(buffer, new [] { pipeline }, indexOffset, indexCount)
 {
 }