摘要: OpenGL是针对Windows Forms开发,下面是在WPF环境下的集成方法。(P.S. 如果只在windows下使用,其实WPF 3D或DirectX是更好的选择)。1.新建一个WPF项目。2.添加以下references到项目中:System.Windows.FormsWindowsFormsIntegrationOpenTKOpenTK.GLControl3.在xaml中加入如下内容:<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/wi 阅读全文
posted @ 2012-12-13 10:24 马语者 阅读(8007) 评论(0) 推荐(1)