function createCanvas(%windowTitle)
{
if ($isDedicated)
{
GFXInit::createNullDevice();
return true;
}
// For Rift
pointCanvasToOculusVRDisplay();
// Create the Canvas
%foo = new GuiCanvas(Canvas);
// Set the window title
if (isObject(Canvas))
Canvas.setWindowTitle(getEngineName() @ " - " @ $appName);
return true;
}