Creates the render window for this class. If you override this function, you must set the RenderWindow property. Example: this.RenderWindow = this.Root.CreateRenderWindow(...); The window handle to render ogre in.
(IntPtr handle)
| 213 | /// </summary> |
| 214 | /// <param name="handle">The window handle to render ogre in.</param> |
| 215 | protected virtual void CreateRenderWindow(IntPtr handle) |
| 216 | { |
| 217 | mRoot.Initialise(false, "Main Ogre Window"); |
| 218 | if (handle != IntPtr.Zero) |
| 219 | { |
| 220 | NameValuePairList misc = new NameValuePairList(); |
| 221 | misc["externalWindowHandle"] = handle.ToString(); |
| 222 | mWindow = mRoot.CreateRenderWindow("Autumn main RenderWindow", 800, 600, false, misc); |
| 223 | } |
| 224 | else |
| 225 | { |
| 226 | mWindow = mRoot.CreateRenderWindow("Autumn main RenderWindow", 800, 600, false); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | /// <summary> |
| 231 | /// Initializes the resources which the program uses. |
nothing calls this directly
no test coverage detected