MCPcopy Create free account
hub / github.com/MyGUI/mygui / CreateRenderWindow

Method CreateRenderWindow

Wrappers/MogreFramework/OgreWindow.cs:215–228  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

InitialiseMethod · 0.45

Tested by

no test coverage detected