idTech4.UI.idDeviceContext.SetSize C# (CSharp) Метод

SetSize() публичный Метод

public SetSize ( float width, float height ) : void
width float
height float
Результат void
		public void SetSize(float width, float height)
		{
			_videoWidth = idE.VirtualScreenWidth;
			_videoHeight = idE.VirtualScreenHeight;

			_scaleX = _scaleY = 0;

			if((width != 0.0f) && (height != 0.0f))
			{
				_scaleX = _videoWidth * (1.0f / width);
				_scaleY = _videoHeight * (1.0f / height);
			}
		}