public TolerantBoxingProxyViewportAdapter(SAMViewportAdapter owner, IProxyScreenProvider provider) : base(owner.GraphicsDevice) { _owner = owner; _proxy = provider; _virtualGuaranteedWidth = owner.VirtualGuaranteedWidth; _virtualGuaranteedHeight = owner.VirtualGuaranteedHeight; _boundsCache = _proxy.ProxyTargetBounds; UpdateMatrix(); }
public void DeregisterProxyScreenProvider(IProxyScreenProvider p) { _proxyScreens.Remove(p); }
public void RegisterProxyScreenProvider(IProxyScreenProvider p) { _proxyScreens.Add(p); }
public abstract SAMViewportAdapter CreateProxyAdapter(IProxyScreenProvider p);
public override SAMViewportAdapter CreateProxyAdapter(IProxyScreenProvider p) { return(new TolerantBoxingProxyViewportAdapter(this, p)); }