Example #1
0
		public override void Draw(Drawing drawing)
		{
			if (indicesIndex == 0)
				return;
			if (verticesUV != null)
				drawing.Add(Material, BlendMode, verticesUV, indices, verticesIndex, indicesIndex);
			else if (verticesColorUV != null)
				drawing.Add(Material, BlendMode, verticesColorUV, indices, verticesIndex, indicesIndex);
			else if (verticesColor != null)
				drawing.Add(Material, BlendMode, verticesColor, indices, verticesIndex, indicesIndex);
		}
Example #2
0
		public BatchRenderer2D(Drawing drawing)
			: base(drawing) {}
Example #3
0
		public Line2DRenderer(Drawing draw)
		{
			this.draw = draw;
			material = new Material(ShaderFlags.Position2DColored, "");
		}
Example #4
0
 public BatchRenderer(Drawing drawing)
 {
     this.drawing = drawing;
 }
Example #5
0
 public GradientRectRenderer(Drawing draw)
 {
     this.draw = draw;
     material = new Material(Shader.Position2DColor, "");
 }
Example #6
0
 public Renderer(Drawing draw)
 {
     this.draw = draw;
 }
Example #7
0
		protected BatchRenderer(Drawing drawing)
		{
			this.drawing = drawing;
		}
Example #8
0
		public ModelRenderer(Drawing drawing)
		{
			this.drawing = drawing;
		}
Example #9
0
		public BillboardRenderer(Drawing drawing, Device device)
		{
			this.drawing = drawing;
			this.device = device;
		}
Example #10
0
 protected Image(string filename, Drawing drawing)
     : base(filename)
 {
     Filename = filename;
     this.drawing = drawing;
 }
Example #11
0
				public DrawGroundPlane1X1(Drawing drawing)
				{
					this.drawing = drawing;
				}
Example #12
0
		public abstract void Draw(Drawing drawing);
 private void SetupRenderer(Window window, Drawing drawing)
 {
     ScreenSpace screen = testResolver.RegisterMock(new QuadraticScreenSpace(window));
     testResolver.RegisterMock(new Mock<Renderer>(drawing, screen).Object);
 }
 private void SetupImage(Drawing drawing)
 {
     MockImage = new Mock<Image>("dummy", drawing);
     MockImage.SetupGet(i => i.PixelSize).Returns(new Size(128, 128));
     MockImage.CallBase = true;
     testResolver.RegisterMock(MockImage.Object);
 }
Example #15
0
 public Render(Drawing drawing)
 {
     this.drawing = drawing;
     material = new Material(Shader.Position2DColor, "");
 }
Example #16
0
		public Circle3DRenderer(Drawing draw)
		{
			this.draw = draw;
			material = new Material(ShaderFlags.Colored, "");
		}
Example #17
0
		public DrawPolygon2D(Drawing draw)
		{
			this.draw = draw;
			material = new Material(ShaderFlags.Position2DColored, "");
		}
 public DrawPolygon2DOutlines(Drawing draw)
 {
     this.draw = draw;
     material = new Material(Shader.Position2DColor, "");
 }