/// <summary> /// Blended Text /// </summary> /// <param name="textColor"></param> /// <param name="textItem"></param> /// <returns></returns> private Surface RenderTextBlended( string textItem, Color textColor) { Sdl.SDL_Color colorSdl = SdlColor.ConvertColor(textColor); if (textItem == null || textItem.Length == 0) { textItem = " "; } return(new Surface(SdlTtf.TTF_RenderUNICODE_Blended( this.Handle, textItem, colorSdl))); }
/// <summary> /// Render Text to Solid /// </summary> /// <param name="textItem">String to display</param> /// <param name="color">Color of text</param> /// <returns>Surface containing the text</returns> private Surface RenderTextSolid(string textItem, Color color) { Sdl.SDL_Color colorSdl = SdlColor.ConvertColor(color); return(new Surface(SdlTtf.TTF_RenderUNICODE_Solid(this.Handle, textItem, colorSdl))); }