idTech4.UI.idDeviceContext.DrawCursor C# (CSharp) Method

DrawCursor() public method

public DrawCursor ( float &x, float &y, float size ) : void
x float
y float
size float
return void
		public void DrawCursor(ref float x, ref float y, float size)
		{
			if(x < 0)
			{
				x = 0;
			}

			if(x >= _videoWidth)
			{
				x = _videoWidth;
			}

			if(y < 0)
			{
				y = 0;
			}

			if(y >= _videoHeight)
			{
				y = _videoHeight;
			}

			idE.RenderSystem.Color = idColor.White;

			AdjustCoordinates(ref x, ref y, ref size, ref size);
			DrawStretchPicture(x, y, size, size, 0, 0, 1, 1, _cursorImages[(int) _cursor]);
		}