public static VMR9Presenter Create() { var vmr9Presenter = new VMR9Presenter(); var customVmr = new CustomVMR9Presenter(); vmr9Presenter.SurfaceAllocator = (IVMRSurfaceAllocator9)customVmr; // Register for present callback ((IVMR9PresenterRegisterCallback)customVmr).RegisterCallback(vmr9Presenter); return vmr9Presenter; }
public static VMR9Presenter Create() { var vmr9Presenter = new VMR9Presenter(); var customVmr = new CustomVMR9Presenter(); vmr9Presenter.SurfaceAllocator = (IVMRSurfaceAllocator9)customVmr; // Register for present callback ((IVMR9PresenterRegisterCallback)customVmr).RegisterCallback(vmr9Presenter); return(vmr9Presenter); }