extern static int AddGlyphsToTextureFromArray_Internal(Glyph[] glyphs, int padding, GlyphRenderModes renderMode, Texture2D texture);
extern static int AddGlyphToTexture_Internal(Glyph glyph, int padding, GlyphRenderModes renderMode, Texture2D texture);
/// <summary> /// Try rasterizing and adding the given list of glyphs to the provided texture. /// </summary> /// <param name="glyphs">The list of glyphs to be added into the provided texture.</param> /// <param name="padding">The padding value around the glyphs.</param> /// <param name="renderMode">The rendering mode used rasterize the glyphs.</param> /// <param name="texture">Returns a value of zero if the glyphs were successfully added to the texture.</param> /// <returns></returns> public static FontEngineError AddGlyphsToTexture(Glyph[] glyphs, int padding, GlyphRenderModes renderMode, Texture2D texture) { return((FontEngineError)AddGlyphsToTextureFromArray_Internal(glyphs, padding, renderMode, texture)); }
/// <summary> /// Try rasterizing and adding the given glyph to the provided texture. /// </summary> /// <param name="glyph">The Glyph that should be added into the provided texture.</param> /// <param name="padding">The padding value around the glyph.</param> /// <param name="renderMode">The Rendering Mode for the Glyph.</param> /// <param name="texture">The Texture to which the glyph should be added.</param> /// <returns>Returns a value of zero if the glyph was successfully added to the texture.</returns> public static FontEngineError AddGlyphToTexture(Glyph glyph, int padding, GlyphRenderModes renderMode, Texture2D texture) { return((FontEngineError)AddGlyphToTexture_Internal(glyph, padding, renderMode, texture)); }