Ejemplo n.º 1
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();
            urhoSurface       = new UrhoSurface();
            urhoSurface.Frame = UrhoSurfacePlaceholder.Bounds;

            //Add UrhoSurface to a NSView defined in the storyboard.
            UrhoSurfacePlaceholder.AddSubview(urhoSurface);
        }
Ejemplo n.º 2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            urhoSurface                  = new UrhoSurface();
            urhoSurface.Frame            = UrhoSurfacePlaceholder.Frame;
            urhoSurface.AutoresizingMask = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable;
            UrhoSurfacePlaceholder.AddSubview(urhoSurface);


            previewer = new PreviewerApplication(new AssetsResolver {
                AssetsImporterFormats = true, AssetsImporterRareFormats = true, Images = true
            });
            previewer.SurfaceRecreationRequested += OnSurfaceRequested;
        }