Mogre 底層維修工程

  • 902
  • 0
  • 2012-09-04

摘要:Mogre 底層維修工程

之前看了MOgreImage的程式碼, 直覺作者很怪, 要把加Viewport的動作放在_RenderFrame裏面

今天再上網看了一下, 作者已經更新把這一段拿掉, 所以我想要把程式更新到新版

但是因為MOGRE的整合其實還滿多稜稜角角的

那麼就多練練基本功, 試著再把MogreImage從頭建置一次

作者列出了一項任務:

1. 要用D3D9Ex 才能在1920X1200的解析度下不會變慢

On Windows Vista or later operating system, use the Direct3DCreate9Ex method with a display that is configured to use the Windows Display Driver Model (WDDM). Use the Direct3DCreate9 method on any other platform.

 

進階功能:

把WPF的Visual當成Mogre的Texture

http://www.codeproject.com/Articles/59790/Use-a-screenshot-of-a-WPF-visual-as-a-texture-in-M

 

經過把舊的和新的程式碼比對, MogreImage.cs 混合了我新增的部份, 已經可以正常運作...(感覺這一篇是廢話)

 

Rz

 

 

 

  Rz     should work (hard)