public Viewport(Context context, Scene scene, Camera camera, RenderPath renderPath = null) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(Viewport)); handle = Viewport_Viewport0((object)context == null ? IntPtr.Zero : context.Handle, (object)scene == null ? IntPtr.Zero : scene.Handle, (object)camera == null ? IntPtr.Zero : camera.Handle, (object)renderPath == null ? IntPtr.Zero : renderPath.Handle); Runtime.RegisterObject(this); OnViewportCreated(); }
/// <summary> /// Set rendering path. /// </summary> private void SetRenderPath(RenderPath path) { Runtime.ValidateRefCounted(this); Viewport_SetRenderPath(handle, (object)path == null ? IntPtr.Zero : path.Handle); }