Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the PLayerList class that contains layers copied
 /// from the specified list and that has the same initial capacity as the number
 /// of layers copied.
 /// </summary>
 /// <param name="list">The list whose layers are copied to the new list.</param>
 public PLayerList(PLayerList list)
 {
     foreach (PLayer layer in list)
     {
         List.Add(layer);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructs a new camera with no layers and a default white color.
        /// </summary>
        public PCamera()
            : base()
        {
            viewMatrix = new PMatrix();
            layers = new PLayerList();
            viewConstraint = CameraViewConstraint.None;

            Brush = new SolidBrush(Color.White);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the PLayerList class that contains layers copied
 /// from the specified list and that has the same initial capacity as the number
 /// of layers copied.
 /// </summary>
 /// <param name="list">The list whose layers are copied to the new list.</param>
 public PLayerList(PLayerList list)
 {
     foreach(PLayer layer in list) {
         List.Add(layer);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Adds the layers of the given list to the end of this list.
 /// </summary>
 /// <param name="list">
 /// The list whose layers should be added to the end of this list.
 /// </param>
 public void AddRange(PLayerList list)
 {
     InnerList.AddRange(list);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Adds the layers of the given list to the end of this list.
 /// </summary>
 /// <param name="list">
 /// The list whose layers should be added to the end of this list.
 /// </param>
 public void AddRange(PLayerList list)
 {
     InnerList.AddRange(list);
 }