     
     // Set a low priority for the logo so that other UI elements can be drawn on top
     logoSprite.priority = -100;
+}
+
+void SetWindowTitleAndIcon()
+{
+    Image@ icon = cache.GetResource("Image", "Textures/LogoLarge.png");
+    graphics.windowIcon = icon;
+    graphics.windowTitle = "Urho3D Sample";
 }
 
 void CreateConsoleAndDebugHud()

// Common sample initialization as a framework for all samples.
//    - Create Urho3D logo at screen;
//    - Create Console and Debug HUD, and use F1 and F2 key to toggle them;
//    - Toggle rendering options from the keys 1-8;
//    - Handle Esc key down to hide Console or exit application;

Sprite@ logoSprite;

        // Instancing
        else if (key == '8')
            renderer.dynamicInstancing = !renderer.dynamicInstancing;

        // Take screenshot
        else if (key == '9')
        {
        Image@ screenshot = Image();
        graphics.TakeScreenShot(screenshot);
        screenshot.FlipVertical();
        screenshot.SavePNG("Data/" + time.timeStamp + " Screenshot.png"); // Here we save in the Data folder with date and time appended
	    }
    }
}
