摘要: 首先查看WorldWindow 的构造函数,接着查看InitializeGraphics()函数。 1 public WorldWindow() 2 { 3 this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); 4 5 // The m_Device3d can't be created unless the control is at least 1 x 1 pixels in size 6 thi... 阅读全文
posted @ 2013-03-28 15:25 太一吾鱼水 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1.WorldWind资源下载:http://worldwindcentral.com/wiki/NASA_World_Wind_Download或者SourceForge上下载。2.依赖:d3d9托管类库,通过安装WorldWind获得 编译项目3.Main程序入口 在WorldWind.cs文件中查看,Main()函数写在public class MainApplication : System.Windows.Forms.Form, IGlobe类内部。 1 /// <summary> 2 /// The main entry point. Parses argu... 阅读全文
posted @ 2013-03-28 14:58 太一吾鱼水 阅读(475) 评论(1) 推荐(0) 编辑
摘要: 两大图形库OpenGL和DirectX对应的.NET实现最流行版本分别为Tao FrameWork和SlimDX,都是开源社区做的,是用.NET技术对原有的c++库进行的封装。补充:还有OpenTK(gl),SharpDX(d3d) 阅读全文
posted @ 2013-03-28 08:55 太一吾鱼水 阅读(256) 评论(0) 推荐(0) 编辑