Deals with rendering for a Picture.
Example #1
0
 /// <summary>Render the instruction by filling the points.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (Vector2i point in Points)
     {
         renderer.DrawFloodfill(point);
     }
 }
Example #2
0
 /// <summary>Render the instruction by setting the dither palette.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (PictureSetPaletteEntry entry in Entries)
     {
         renderer.DitherPalette[entry.Index] = entry.Color;
     }
 }
Example #3
0
            /// <summary>Render the instruction.</summary>
            /// <param name="renderer"></param>
            public override void Render(PictureRenderer renderer)
            {
                var dither = renderer.DitherPalette[DitherPaletteIndex];

                renderer.Canvas.Visual.SetColor((byte)((dither & 0xF0) >> 4), (byte)(dither & 0x0F));
                renderer.DrawVisual = true;
            }
Example #4
0
 /// <summary>Render the instruction by drawing the line strip.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawMoveTo(Start);
     foreach (Vector2i point in Points)
     {
         renderer.DrawLineTo(point);
     }
 }
Example #5
0
 /// <summary>Render the instruction by drawing the patterns.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (PicturePatternDrawLocation location in DrawLocations)
     {
         if ((PatternFlags & PicturePatternFlags.UsePattern) != 0)
         {
             renderer.PatternNumber = location.PatternNumber;
         }
         renderer.DrawPatternAt(location.Position);
     }
 }
Example #6
0
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.Canvas.Priority.SetColor((byte)(PriorityValue & 15));
     renderer.DrawPriority = true;
 }
Example #7
0
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawVisual = false;
 }
 /// <summary>Render the instruction by disabling the control map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawControl = false;
 }
Example #9
0
 /// <summary>Does nothing.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
 }
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawVisual = false;
 }
 /// <summary>Render the instruction by setting the control colour and enabling the control map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.Canvas.Control.SetColor((byte)(ControlMapValue & 15));
     renderer.DrawControl = true;
 }
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     var dither = renderer.DitherPalette[DitherPaletteIndex];
     renderer.Canvas.Visual.SetColor((byte)((dither & 0xF0) >> 4), (byte)(dither & 0x0F));
     renderer.DrawVisual = true;
 }
 /// <summary>Render the instruction; this does nothing.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
 }
 /// <summary>Render the instruction by drawing the patterns.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (PicturePatternDrawLocation location in DrawLocations) {
         if ((PatternFlags & PicturePatternFlags.UsePattern) != 0)
             renderer.PatternNumber = location.PatternNumber;
         renderer.DrawPatternAt(location.Position);
     }
 }
 /// <summary>Render the instruction by drawing the line strip.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawMoveTo(Start);
     foreach (Vector2i point in Points)
         renderer.DrawLineTo(point);
 }
 /// <summary>Render the instruction by filling the points.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (Vector2i point in Points)
         renderer.DrawFloodfill(point);
 }
 /// <summary>Draw the cel.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawCel(Cel);
 }
Example #18
0
 /// <summary>Render the instruction by disabling the priority map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawPriority = false;
 }
Example #19
0
 /// <summary>Render the instruction by assigning the pattern flags.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.PatternFlags = PatternFlags;
 }
Example #20
0
 /// <summary>Render the instruction by disabling the control map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawControl = false;
 }
 /// <summary>Render the instruction by setting the dither palette.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     foreach (PictureSetPaletteEntry entry in Entries)
         renderer.DitherPalette[entry.Index] = entry.Color;
 }
 /// <summary>Render the instruction by disabling the priority map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawPriority = false;
 }
Example #23
0
 /// <summary>Render the instruction by setting the control colour and enabling the control map.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.Canvas.Control.SetColor((byte)(ControlMapValue & 15));
     renderer.DrawControl = true;
 }
 /// <summary>Render the instruction by assigning the pattern flags.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.PatternFlags = PatternFlags;
 }
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.Canvas.Priority.SetColor((byte)(PriorityValue & 15));
     renderer.DrawPriority = true;
 }
Example #26
0
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public abstract void Render(PictureRenderer renderer);
Example #27
0
 /// <summary>Draw the cel.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawCel(Cel);
 }
 /// <summary>Render the instruction.</summary>
 /// <param name="renderer"></param>
 public abstract void Render(PictureRenderer renderer);