idTech4.Renderer.idRenderSystem.DrawSmallCharacter C# (CSharp) Method

DrawSmallCharacter() public method

Small characters are drawn at native screen resolution.
public DrawSmallCharacter ( int x, int y, int c, idMaterial material ) : void
x int
y int
c int
material idMaterial
return void
		public void DrawSmallCharacter(int x, int y, int c, idMaterial material)
		{
			c &= 255;

			if(c == ' ')
			{
				return;
			}

			if(y < -idE.SmallCharacterHeight)
			{
				return;
			}

			int row = c >> 4;
			int col = c & 15;

			float actualRow = row * 0.0625f;
			float actualCol = col * 0.0625f;
			float size = 0.0625f;

			DrawStretchPicture(x, y, idE.SmallCharacterWidth, idE.SmallCharacterHeight, actualCol, actualRow, actualCol + size, actualRow + size, material);
		}