/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.canvas = new UMD.HCIL.PiccoloDirect3D.P3Canvas(); this.SuspendLayout(); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(248, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(200, 32); this.label1.TabIndex = 0; this.label1.Text = "This shows Piccolo.NET using the Direct3D graphics renderer"; // // canvas // this.canvas.AllowDrop = true; this.canvas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.canvas.BackColor = System.Drawing.Color.White; this.canvas.Location = new System.Drawing.Point(8, 56); this.canvas.Name = "canvas"; this.canvas.Size = new System.Drawing.Size(680, 464); this.canvas.TabIndex = 1; this.canvas.Text = "8"; // // Direct3DTester // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(696, 526); this.Controls.Add(this.canvas); this.Controls.Add(this.label1); this.Name = "Direct3DTester"; this.Text = "Piccolo Direct3D Tester"; this.ResumeLayout(false); }
/// <summary> /// Constructs a new P3PaintContext. /// </summary> /// <param name="g">The GDI+ graphics context to associate with this paint context.</param> /// <param name="device">The device to associate with this paint context</param> /// <param name="canvas">The canvas that the paint context will render on.</param> public P3PaintContext(Graphics g, Device device, P3Canvas canvas) : base(g, canvas) { this.device = device; }