Ejemplo n.º 1
0
        public void Initialize()
        {
            if (RParas == null)
            {
                RParas = new RenderParameter(Theme.Default);
            }

            wresRenderer = new WResRenderer();

            this.BackColor = RParas.Background;
            this.Dock      = DockStyle.Fill;
            this.Location  = new System.Drawing.Point(0, 0);
            this.Name      = "renderControl1";
            this.TabIndex  = 0;
            this.Text      = "meshRenderer1";

            trans.Initialize(this.ClientRectangle);
            InitializeBuffer();
            G = buffer.Graphics;

            initialized = true;

            this.Invalidate();
        }