public virtual OverlayElement createOverlayElement(string instanceName) { global::System.IntPtr cPtr = OgreOverlayPINVOKE.OverlayElementFactory_createOverlayElement(swigCPtr, instanceName); OverlayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new OverlayElement(cPtr, true); if (OgreOverlayPINVOKE.SWIGPendingException.Pending) { throw OgreOverlayPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }