随笔- 53
文章- 0
评论- 220
DirectX9
DirectX中将屏幕坐标转成空间坐标
摘要: Point p = Cursor.Position;p = this.PointToClient(p);Vector3 v1 = new Vector3(p.X, p.Y, 0f);v1.Unproject(this.GraphicDevice.Viewport, this.GraphicDevice.Transform.Projection, this.GraphicDevice.Transfo...阅读全文
Odyssey UI
摘要: A User Interface Control Library for Managed DirectX projectsEvery game needs a User Interface, mine is no exception. The DirectX SDK provides a sample UI that looks very cool but is very difficult to...阅读全文
