Skip to main content

History: Mogre Wiki Tutorial Framework Other Uses

Source of version: 4 (current)

Copy to clipboard
            {DIV(class="Layout_box6")}{CUT(colsize=10%|70%)}{IMG(fileId="1506",imalign="left",link="Mogre Wiki Tutorial Framework",title="Mogre Tutorials Framework")}{IMG}
---
{DIV(class="bigBold")}Mogre Wiki Tutorial Framework - Other Uses{DIV}
This page contains additional information for advanced users or anyone who is not using the framework with the tutorials.
{CUT}{DIV}

!No Startup Window
If you find the configuration window annoying and would like your application to start immediately, you can set the engine configuration programmatically by overriding the ''Configure'' method:

{CODE(wrap="1", colors="c#")}
protected override bool Configure()
{
    // Setup RenderSystem by code
    RenderSystem rs = mRoot.GetRenderSystemByName("Direct3D9 Rendering Subsystem");
    rs.SetConfigOption("Full Screen", "No");
    rs.SetConfigOption("Video Mode", "800 x 600 @ 32-bit colour");
    rs.SetConfigOption("FSAA", "0");      // anti aliasing factor (0, 2, 4 ...)
    mRoot.RenderSystem = rs;
    mWindow = mRoot.Initialise(true, "TutorialApplication Render Window");
    return true;
}
{CODE}

More options you find on the page ((RenderWindowParameters)).

__NOTE:__ If you use this technique the application window might not recieve focus on startup, which would prevent you from moving the camera around with the mouse. If that happens, all you need to do is click on the render window when it appears to give it focus.

---