OpenGLBase是OpenGL控件:
public OpenGLBase(Conrol parent,string name)
{
this.Dock = DockStyle.Fill;
this.Location = new Point(0, 0);
this.Name = name;
this.Visible = true;
parent.Controls.Add(this);
parent.ResumeLayout(false);
}
在Form类中:
myCSGLView = new OpenGLBase(tag_name, "3DTerrian");
public OpenGLBase(Conrol parent,string name)
{
this.Dock = DockStyle.Fill;
this.Location = new Point(0, 0);
this.Name = name;
this.Visible = true;
parent.Controls.Add(this);
parent.ResumeLayout(false);
}
在Form类中:
myCSGLView = new OpenGLBase(tag_name, "3DTerrian");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货